Jump to content

SOLVED - Weird symbol in subject email


Recommended Posts

Hi,

 

I'm sending an email, and it works, but the subject has a weird symbol (see image attached). This is my code:

public function postProcess() {
        $id_lang = (int)(Configuration::get('PS_LANG_DEFAULT'));
        $template = 'contact';
        $subject = 'Test subject';
        $template_vars = array(
            '{email}' => 'client email',
            '{message}' => 'test message',
        );
        $to = '[email protected]';
        $to_name = 'myname';
        $from = '[email protected]';
        $from_name = 'a';


        Mail::Send($id_lang, $template, $subject, $template_vars, $to,
        $to_name, $from, $from_name, $file_attachment = null, $mode_smtp = null,
        $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null, $bcc = null, $reply_to = null);
}

Everything works fine, it is just that symbol. Thanks in advance.

a.jpg

Edited by felix7 (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...