#include <jwsmtp/jwsmtp.h>
int main(int argc, char* argv[ ]) {
jwsmtp::mailer mail;
mail.addrecipient("someone");
mail.setsender("me");
mail.setsubject("subject of mail");
mail.setmessage("Plain text message body");
mail.setserver("localhost");
std::string htmlmessage("<html>"
"<body>"
"This is the html part of the message<br /><br />"
"<b>bold</b><br />"
"<i>italic</i><br />"
"<font size=\"7\">Large Text</font><br /><br />"
"Or a link: <a href=\"http://mumbleface.net\">mumbleface.net</a><br /><br />"
"And an image: <br><img alt=\"an image in email\" src=\"http://mumbleface.net/jwsmtp/example.png\"><br />"
"</body>"
"</html>");
mail.setmessageHTML(htmlmessage);
mail.send( );
return 0;
}