From http://blog.thiagobelem.net/enviar-e-mails-pelo-php-usando-o-phpmailer/