We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 867
    • 241 Posts
    Hi everyone,

    I have a little issue in the notification email, all the accents aren’t coded, i got : Gérant de société (french)
    Modx is in UTF8 as is MySQL..

    Is it something related to phpmailer in webloginPE class ?

    How can i resolve it ?

    Thanks a lot in advance..

    Mickaël
      • 26435
      • 1,193 Posts
      Quote from: alchime at Feb 26, 2008, 08:37 AM

      [...] Is it something related to phpmailer in webloginPE class ? [...]
      PHPMailer has a public property called $CharSet. The default is iso-8859-1. You can change this in webloginpe.class.php.

      at about line 660 you should see this

      // Bring in php mailer!
      $Register = new PHPMailer();
      $Register->From = $myEmail;
      $Register->FromName = $siteName;
      $Register->Subject = $emailSubject;



      Right after this line:
      $Register = new PHPMailer();

      add this line:
      $Register->CharSet = "UTF-8";

      Also, around line 692 there is this code:
      $Notify = new PHPMailer();

      directly after that add this line:
      $Notify->CharSet = "UTF-8";

      -sD-
      Dr. Scotty Delicious, DFPA.
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 867
        • 241 Posts
        Thanks scotty, you’re the best.