Charset problem. Bounced email.

User 2863844 Photo


Registered User
15 posts

Hi.
I'm getting email error on Confirm email and notifications.
"SMTPUTF8 is required, but was not offered by host"
It works fine when sending to some mail accounts like gmail, but sending to my company email (notification) and eg. Hotmail gets bounced.

I have checked with my hosting provider and they tell me that the problem is in the CharSet command.
We use Swedish characters in Subject and text.
In UFT-8 these characters should possible to write Ä Ö Å (ä ö å)
In iso-8859-1 it should be Ä ä Ö ö Å å

They say it should be enough to define in PHPmailer: $mail->CharSet = 'UTF-8';

There is no problem in the text as this has the code: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
The problem is with the subject line as long as it contains Swedish letters.

Anyone knows what file I have to fix to make it work?

User 2852222 Photo


Registered User
1 post

Similar issue here!

In my subject I have chracters like éêà etc. and when I test the form I receive in the subject somthing like
<Merci pour votre requête> instead of <Merci pour votre requête> this usually has to do with character encoding in the subject

In other php project I do somthing like
...
$results = mail($emailTo, '=?utf-8?B?'.base64_encode($mailSubject).'?=', $body, $headers, "-f admin@rhumadata.org");
...
to make sur the characters are being corectly encoded in the subject...

How can I do somthing like that in Web form builder -> settings -> confirm email?

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.