Euro symbol into subject?

Help
Giorgio
2012-03-13
2013-09-04
  • Giorgio
    Giorgio
    2012-03-13

    Hello,

    I would like to add the euro symbol (€) into the mail subject. How can I do?

    Thanks in advance.

     
  • Aart de Bruijn
    Aart de Bruijn
    2013-09-04

    Just add the sign as sign and set the right encoding for the email. Phpmailers default is iso-8859-1. This encoding does not recognise the euro sign. Iso-8859-15 does (and UTF-8).
    Besides that make sure the encoding from your email is the same as the page you send it from. In my case it was UTF-8.

    So this did the trick for me.

    $mail = new PHPMailer(true);
    $mail->CharSet = 'UTF-8';
    
     
    Last edit: Aart de Bruijn 2013-09-04