I have some difficulties sending quoted-printable encoded HTML mails properly. My HTML needs to be cut into lines to fullfil the requirement of having no line of more than 79 characters that is required for compatibility reasons - I have found the concept of a "soft line break" for this usecase.
A working example of this is:
( mailto:abc@someonesdomain.tld?subject=3DReply%20to%20this%20Post%20%5B428=
2-8596-332127136989972_339826386220047-6307b30ea80af240f0557f2340d9758d%5D&=
body=3D******%20Enter%20your%20reply%20below%20this%20line%20and%20hit%20SE=
ND.%20You%20may%20also%20attach%20an%20image%20to%20your%20reply%20****** )
When I copy the line ends to notepad it shows only = CR LF.
So I've tried to use wordwrap($newHtmlBody, 70, '='.PHP_EOL, true);
and my output kinda looked like working example above. However, when viewing the sent email in gmail, it would not accept this. What am I doing wrong?
The relevant email header/body above the HTML content is:
MIME-Version: 1.0
From: "Admin" <no-reply@domain.tld>
Content-Type: multipart/alternative; boundary="_av-aRPROueRxMYL7a0Ro00ndA"
Message-Id: <20150302.ABCDEFGHIJKLMNOPQRSTUVWYXZ@domain.tld>
Date: Mon, 2 Mar 2015 15:41:38 +0100 (CET)
--_av-aRPROueRxMYL7a0Ro00ndA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Plain text
--_av-aRPROueRxMYL7a0Ro00ndA
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable