Hi!

I have open the Ticket 1385 and now i know the answer. But i can't writ on the
Ticket. So i post the fix on this mailing list. I hope it's okay...



--- a/src/Wt/Mail/Client
+++ b/src/Wt/Mail/Client
@@ -28,18 +28,21 @@ class Message;
  * The SMTP client can send one or more mail messages to an SMTP host.
  *
  * \code
+ * #include <Wt/Mail/Client>
+ * #include <Wt/Mail/Message>
+ *
  * Mail::Message message;
- * message.setFrom(Mail::Mailbox("[email protected]", "Kudos Dukos"));
- * message.addRecipient(Mail::To, Mail::Mailbox("[email protected]", "Koen
Deforche"));
- * message.setSubject("Hey there, koen!");
- * message.setBody("That mail client seems to be working."));
- * message.addHtmlBody("<p>"
- *      "<a href="http://www.webtoolkit.eu/wt";>That mail client</a>"
- *      " seems to be working just great!</p>"));
+ * message.setFrom ( Mail::Mailbox("[email protected]", "Kudos Dukos" );
+ * message.addRecipient ( Mail::To, Mail::Mailbox("[email protected]", "Koen
Deforche" );
+ * message.setSubject ( "Hey there, koen!" );
+ * message.setBody ( "That mail client seems to be working." );
+ * message.addHtmlBody ( "<p>"
+ *      "<a href=\"http://www.webtoolkit.eu/wt\";>That mail client</a>"
+ *      " seems to be working just great!</p>" );
  *
  * Mail::Client client;
- * client.connect("localhost");
- * client.send(message);
+ * client.connect ( "localhost" );
+ * client.send ( message );
  * \endcode
  *
  * Only the bare essentials of the SMTP protocol are current implemented,

best wishes

Olaf Radicke
(germany / munich)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to