OpenCart emails bounce: message has lines too long for transport

OpenCart emails bounce: message has lines too long for transport

In cPanel emails from OpenCart are bouncing back with the error message: message has lines too long for transport

iAoRFEC - OpenCart emails bounce: message has lines too long for transport

To fix this edit the /system/library/mail/mail.php and encase every instance of base64_encode() with chunk_split()

$message .= base64_encode($this->html) . $eol;

becomes

$message .= chunk_split(base64_encode($this->html)) . $eol;

chrome LPTZmj5uYA - OpenCart emails bounce: message has lines too long for transport

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.