Jump to content

Error sending email when customer's name contains non-standard characters


Recommended Posts

Hi,
I'm sure that it's not only my problem:

If the customer's name is e.g. John Smith, everything works fine. BUT if the customer's name is something like Štefan Novák (which is common in Slovakia / Czech republic etc.), the system will not send emails to the customer from the Orders page in Back Office.

The error displayed says something like "1 error occured while sending email". I'm using default PHP mail() function and as I said, for contacts with simple names it works fine...

I'll be very thankful for any help.

Link to comment
Share on other sites

  • 9 months later...

OK, I think I solved this: in classes/mail.php change line 55:
$to = new Swift_Address($to, $toName);
to
$to = new Swift_Address($to);
So, it will not add email owners name and surename (those may be non-standard characters) in front of mail adress.

Link to comment
Share on other sites

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...