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

    I have found a problem with mail sent, Modx wit UTF-8 and french language. When a email is sent with this configuration and the text (parametered in the administration for WebSignup), accented character are not well displayed. See the exemple below.
    L’url pour vous accéder à votre compte est .. Après votre connexion, vous pourrez modifier votre mot de passe.

    The solution consists to specify the charset in the mail header. For example :

    $header = 'From: '.$from."\n"
     .'MIME-Version: 1.0'."\n"
     .'Content-Type: text/plain; charset="UTF-8"'."\n";
    
    mail($to,$subject,$message,$header);


    Could you verify your code.

    Thanks for all users who use UTF-8 and internationalization.


      Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
      • 26704
      • 115 Posts
      Hello,

      can some one hellp to me with same problem? I am use MODx version 0.9.6.3. Where i need change src code for header value?

      Thanks.

      p.s. Sorry for my english. I’m from Russian Federation.