jwSMTP example code

#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://johnwiggins.net\">johnwiggins.net</a><br><br>"
         "And an image: <br><img alt=\"an image in email\" src=\"http://johnwiggins.net/jwsmtp/example.png\"><br>"
         "</body>"
         "</html>");     
     mail.setmessageHTML(htmlmessage);

     mail.send( );

     return 0;
}