title: Cant send email with correct characters with PHPMailer
body: <p>I'm trying to send a e-mail with the PHPmailer class, but the html i send, is empty, or the characters are unconfigured, and without accents.</p>
  
  <pre><code>&lt;?php
  header("Content-Type: text/html; charset=ISO-8859-1", true);
  require_once('class.phpmailer.php');
  include "config.php";
  
  $nome = trim($_POST['nome']);
  $email  = trim($_POST['Imail']);
  $usuario = trim($_POST['usuario']);
  $senha = trim($_POST['senha']);
  $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
  
  $mail-&gt;IsSMTP(); // telling the class to use SMTP
  
  try {
    $mail-&gt;AddAddress($email, $nome);
    $mail-&gt;SetFrom('editora@conectfarma.net', 'Conectfarma');
    $mail-&gt;AddReplyTo('editora@conectfarma.net', 'Conectarma');
    $subject = 'Guia Rápido de Interações Medicamentosas';
    $sendsubject= "=?utf-8?b?".base64_encode($subject)."?=";
    $mail-&gt;Subject = $sendsubject;
   $mensagem  = "&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  Bem vindo ao Guia Rápido de Interações Medicamentosas em Neurologia e Psiquiatria
  Seu Login e Senha para acesso ao aplicativo são:\n
  Login:"  .$nome. "\n, Senha : " .$senha.
  "\nAtenciosamente,
  Conectfarma Publicações Científicas
  &lt;/body&gt;
  &lt;/html&gt;";
  
    $mail-&gt;Body = $mensagem;
    //$mail-&gt;CreateBody($mensagem);
    $mail-&gt;IsHTML(true);
    $mail-&gt;Send();
    //$mail-&gt;CharSet="UTF-8";
    echo "&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'&gt;
  &lt;title&gt;Confirmação&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Não vai maçã.
  &lt;/body&gt;
  &lt;/html&gt;
  ";
  } catch (phpmailerException $e) {
    echo $e-&gt;errorMessage(); //Pretty error messages from PHPMailer
  } catch (Exception $e) {
    echo $e-&gt;getMessage(); //Boring error messages from anything else!
  }
          }
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>I jumped the SMTP configuration because its working properly.</p>