Reputation: 23
I've stripped this email down and it's still displaying the problem: certain random characters are being replaced by "=" in Outlook. I'm using PHP/Codeigniter and sparkpost.com as the mailing mechanism.
In outlook.com:
In gmail/other clients tested, it's fine
Email Config:
$config['protocol'] = 'smtp';
$config['smtp_host'] = "smtp.sparkpostmail.com";
$config['smtp_user'] = "SMTP_Injection";
$config['smtp_pass'] = " ";
$config['smtp_port'] = 587;
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
Stripped down HTML for Email
Any ideas?
Upvotes: 2
Views: 1193
Reputation: 5439
In your config add the following line:
$config['crlf'] = "\r\n";
The reason is the following:
According to RFC 2045 for a quoted-printable encoding \r\n
must be used.
However Codeigniter breaks this rule because they say some server can't handle this properly, and use therefore \n
only.
This is documented in the E-Mail Library under /system/libraries/EMail.php. You can see that in Line 182 on the official Github Rep.
Upvotes: 3