Actions
Support #2695
closed
ЕИ
WD
Sending mail messages
Support #2695:
Sending mail messages
Description
Hello !
Tell me please, how can i know message was sent or not ?
#include <Wt/Mail/Client>
#include <Wt/Mail/Message>
Mail::Message message;
message.setFrom(Mail::Mailbox("kudos@corp.org", "Kudos Dukos");
message.addRecipient(Mail::To, Mail::Mailbox("koen@emweb.be", "Koen Deforche");
message.setSubject("Hey there, koen!");
message.setBody("That mail client seems to be working.");
message.addHtmlBody ("
"
"<a href="http://www.webtoolkit.eu/wt\">That mail client"
" seems to be working just great!
");
Mail::Client client;
client.connect("localhost");
client.send(message);
WD Updated by Wim Dumon over 12 years ago
- Status changed from New to Resolved
Currently you can't know. The error will be reported in the log (logger Mail.Client).
I fixed send() to return a boolean.
BR,
Wim.
KD Updated by Koen Deforche over 12 years ago
- Assignee set to Wim Dumon
KD Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed
Actions