Project

General

Profile

Actions

Support #2695

closed
ЕИ WD

Sending mail messages

Support #2695: Sending mail messages

Added by Евгений Илюшин over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02/21/2014
Due date:
% Done:

0%

Estimated time:

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 Dukos");
message.addRecipient(Mail::To, Mail::Mailbox("", "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 Actions #1

  • 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 Actions #2

  • Assignee set to Wim Dumon

KD Updated by Koen Deforche over 12 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom