We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Formatting issue with HTML emails and 365 smtp adding = in middle of word.

How Do I?

Notauser's avatar
Notauser
3 posts
one year ago
Notauser's avatar Notauser

Hello We have 3rd party using expressionengine to send emails. These are configured to use a 365 account (SMTP)

The email arrive saying their are HTML at the top (in outlook) and look as follow:

Dear C=ris Thank =ou for contacting us. We app=eciate that you’ve taken the time to write. If you=eed a response, we’ll get back to you as quickly as we can.

In the text they seem to add = on the same character number on each line. Included a screenshot too.

If this some form of config issue. Any pointers to pass on to them would be great.

       
jelle's avatar
jelle
86 posts
one year ago
jelle's avatar jelle

I am experiencing the exact same issue. Are you sending email through EE only, or through an addon such as Freeform?

       
Tom Jaeger's avatar
Tom Jaeger
426 posts
one year ago
Tom Jaeger's avatar Tom Jaeger

I don’t think I’ve specifically run into this issue myself. However it sounds like it could be a character set issue. I’d recommend doing a little research and changing the email character set in your config file. or via the CP in Settings --> Outgoing Email

What version of ExpressionEngine are you running?

Cheers,

-Tom Jaeger

       
jelle's avatar
jelle
86 posts
one year ago
jelle's avatar jelle

I am running 7.3.14, but it started happening a few months ago when the site was running on EE5 too I’ve played around with the config but that didn’t change anything

however i did find this, which might be helpful? https://stackoverflow.com/questions/13065695/codeigniter-smtp-email-message-characters-replaced-with-equal-signs

       
Notauser's avatar
Notauser
3 posts
one year ago
Notauser's avatar Notauser

Its ExpressionEngine is version 7.3.11

The character encoding is UTF-8 Which seems to match 365.

Any other suggestions on what they might need to check?

       
stereoi123's avatar
stereoi123
31 posts
7 months ago
stereoi123's avatar stereoi123

Hello! I am having the same issue on a site running EE v. 7.4.11 and FreeForm 3.1.0.

When I send email directly through EE’s email component under System Settings, things work well. But when notifications are sent from FreeForm, the resulting emails also have some characters replaced with the = sign.

Emails are being sent through a Microsoft 365 SMPT auth. account. Tried using UTF-7, UTF-8 and US-ASCII character encodings. All with the same result.

Has anyone found a solution to this?

       
jelle's avatar
jelle
86 posts
7 months ago
jelle's avatar jelle

Hi! i’ve solved this in my case I changed line 169 in /ee/legacy/libaries/email.php to public $crlf = “\r\n”; I’ve added this as an issue on github too, but i don’t think this is solved in the next release: https://github.com/ExpressionEngine/ExpressionEngine/issues/4004

👍 1
       
stereoi123's avatar
stereoi123
31 posts
7 months ago
stereoi123's avatar stereoi123

@jelle, Thank you so much! Changing line 169 in ee/legacy/libraries.email.php to public $crlf = “\r\n” worked great!!

       
Notauser's avatar
Notauser
3 posts
7 months ago
Notauser's avatar Notauser

Just wanted to follow this up as I originally posted.

Did manage to find a fix too being:

“$this->email->set_crlf( “\r\n” );”

https://github.com/ExpressionEngine/ExpressionEngine/issues/4004

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.