Sending email both text/plain and text/html content type (RESOLVED)
Posted: Tue Nov 05, 2019 7:32 pm
Hi all,
I need to send emails with text/html content type. I can do that using Lansa Integrator with SMTPMailService and everything works fine.
Now I need to include also the text/plain content type in the text/html email because some spam filter rejects email with only the text/html content type (for example SpamAssassin -https://spamassassin.apache.org/- assigns a lower score to these email due to MIME_HTML_ONLY rule).
Is it possible to create an email with both content types in Lansa? The source code of the email should be something like this (in bold the part to add):
Date: Mon, 4 Nov 2019 16:03:35 +0100 (CET)
From: Test email <xxx@sss.com>
To: yyy@sss.com>
Message-ID: <-818934553.137.1572879815524.JavaMail.dcwpgmlib@xxx.xx>
Subject:
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_136_1606614110.1572879815523"
------=_Part_136_1606614110.1572879815523
Content-Type: text/html;charset=iso-8859-1
Content-Transfer-Encoding: 7bit
<h2>Test email</h2>
<p> </p>
<p><strong>Test emailt</strong></p>
<p>Test email</p>
<p> </p>
------=_Part_136_1606614110.1572879815523--
------=_Part_136_1606614110.1572879815523
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Test email
Test email
------=_Part_136_1606614110.1572879815523--
Thanks
I need to send emails with text/html content type. I can do that using Lansa Integrator with SMTPMailService and everything works fine.
Now I need to include also the text/plain content type in the text/html email because some spam filter rejects email with only the text/html content type (for example SpamAssassin -https://spamassassin.apache.org/- assigns a lower score to these email due to MIME_HTML_ONLY rule).
Is it possible to create an email with both content types in Lansa? The source code of the email should be something like this (in bold the part to add):
Date: Mon, 4 Nov 2019 16:03:35 +0100 (CET)
From: Test email <xxx@sss.com>
To: yyy@sss.com>
Message-ID: <-818934553.137.1572879815524.JavaMail.dcwpgmlib@xxx.xx>
Subject:
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_136_1606614110.1572879815523"
------=_Part_136_1606614110.1572879815523
Content-Type: text/html;charset=iso-8859-1
Content-Transfer-Encoding: 7bit
<h2>Test email</h2>
<p> </p>
<p><strong>Test emailt</strong></p>
<p>Test email</p>
<p> </p>
------=_Part_136_1606614110.1572879815523--
------=_Part_136_1606614110.1572879815523
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Test email
Test email
------=_Part_136_1606614110.1572879815523--
Thanks