Skip to content

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

Description

@jelle-burodeng

We send our emails through office365 via smtp. Somehow every 70-80 characters a character gets replaced by an equal sign such as below:

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.

I''ve found other users are experiencing this too:
https://expressionengine.com/forums/topic/253810/formatting-issue-with-html-emails-and-365-smtp-adding-in-middle-of-word

And i've found a possible solution here:
https://stackoverflow.com/questions/13065695/codeigniter-smtp-email-message-characters-replaced-with-equal-signs
"once I put in the "$this->email->set_crlf( "\r\n" );" it worked immediately without any issues!!!"

I have seen this issue on this site both when it was on EE5 a few months ago, but also now that it's running on EE7.3.14

I changed line 169 in /ee/legacy/libaries/email.php to public $crlf = "\r\n"; which seems to solve this

There is a sense of urgency to this one sine it's affecting orders from an ecommerce site

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions