title: PhpMailer accented characters not recognized in external IE application
body: <p>Good morning,
  I have a problem with my php page that sends mails using PhpMailer because everything I enter with accented letters when it is sent to the external application, which uses Internet Explorer since it is old, is downloaded with unaccented characters; I guess it is a coding problem and for this I tried to do some tests that I put here below:</p>
  <pre><code>$today = date(&quot;F j, Y, g:i a&quot;); 
  require'PHPMailer/PHPMailerAutoload.php';
  
  $mail = new PHPMailer(true);
  $mail-&gt;IsSMTP(); // telling the class to use SMTP
  $mail-&gt;SMTPDebug  = 0;
  $mail-&gt;SMTPAuth = true; 
  
  
  $mail-&gt;Host = &quot;####&quot;;    
  $mail-&gt;Username = &quot;####&quot;;
  $mail-&gt;Password = &quot;####&quot;;
  $mail-&gt;SMTPSecure = 'ssl';
  $mail-&gt;Port = ####;
  $mail-&gt;From = &quot;####&quot;;
  
  $mail-&gt;FromName = '';
  $mail-&gt;charSet = &quot;multipart/alternative&quot;;
  $mail-&gt;AddAddress(&quot;####&quot;);
  $mail-&gt;Subject = utf8_decode($oggetto);
  $mail-&gt;Body = utf8_decode($messaggio);
  </code></pre>
  <p>below is the message to be sent to an external application that needs special tags:</p>
  <pre><code>    $messaggio = '&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=ISO-8859-15&quot;&gt;'
  . '&lt;!--MF@[WEB]--&gt;&lt;strong&gt;ORDINE&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;num. &lt;!--MF$[NUM]--&gt;' . $numero_ordine . '&lt;!--MF&amp;[NUM]--&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;del &lt;!--MF$[DAT]--&gt;' . $data . '&lt;!--MF&amp;[DAT]--&gt;&lt;br/&gt;'
  . '&lt;hr/&gt;&lt;br/&gt;'
  . 'Azienda: &lt;!--MF$[SOC]--&gt;' . $UserSoc . '&lt;!--MF&amp;[SOC]--&gt; ' . $strSocCts . '&lt;br /&gt;'
  . $strSdi
  . $strInd . '&lt;br/&gt;'
  . $strPiv . '&lt;br/&gt;'
  . $strCRS . '&lt;br/&gt;'
  . $strTel . '&lt;br /&gt;'
  . $strEma . '&lt;br /&gt;'
  . '&lt;br /&gt;'
  . 'Dati recapito:&lt;br /&gt;'
  . '&lt;hr/&gt;'
  . $strRecSoc . '&lt;br/&gt;'
  . $strRecInd . $strRecTel . $strRecEma
  . '&lt;br /&gt;&lt;br /&gt;'
  . $prodott
  . '&lt;hr/&gt;'
  . 'Subtotale materiale: ' . fix($total) . ' euro  + Trasporto: ' . $trasporto . ' euro &lt;br /&gt;'
  . $ivatotale . $sconto . $pagamento 
  . 'Vettore: ' . $vettore . '&lt;br /&gt;'
  . '&lt;hr&gt;'
  . $totaletotale
  . $annotazioni
  . 'Note :&amp;nbsp; &lt;br/&gt;&lt;hr&gt;'
  . $UserNec . '&lt;br/&gt;&lt;br/&gt;';
  </code></pre>
  <p>As tests for encoding I tested these but I only got characters with no accent or &quot;weird&quot; characters.</p>
  <pre><code>/**
       * The character set of the message.
       * @type string
       */
      public $CharSet = 'UTF-8';
  
  
      /**
       * The MIME Content-type of the message.
       * @type string
       */
      public $ContentType = 'text/plain';
  </code></pre>
  <p>trying to put as charset = ISO-8859-1 or UTF8 but without results.</p>
  <p>I just don't understand where I'm wrong.
  Thanks in advance.</p>