Hey Mike,
I am using Mail.send for body text that has a link in it like this:
If I am only sending a text email, this block of code works fine.
if (this.text && !this.html && !this.attachments.length) {
putln('Content-type: text/plain');
putln('');
putln(this.text);
}
But, if an html body is also specified, this is the block that gets executed:
if (this.text) {
putln('--' + boundary);
putln('Content-Type: text/plain');
putln('Content-Transfer-Encoding: quoted-printable');
putln('');
putln(this.text);
putln('');
}
The link in the email then looks like:
Notice the '=Ac' was replaced with the 'not sign' which has a hexcode of \xAC and an escape of %AC so that must be related.
Something similar happens on the key=value section, but since the value changes all the time, so does the resulting syntax.
I suspect that the line with 'quoted-printable' is causing the issue. Is that needed because it is now a MIME email given the text and html body?
Currently, my 'work-around' is to only send a text email. Is there something I can do to still send both text and html without the link getting 'borked'?
Thanks,