Page 1 of 1

print HTML Mail

Posted: Mon Jun 11, 2018 3:26 am
by m400mail
Hello,

i will sent my html data with the following script via E-Mail

var toEmail = 'michael.krautscheid@bohle.de.';
var bodyText = getObj("HtmlData").pui.properties.html;
alert(bodyText);
pui.link("mailto:"+encodeURIComponent(toEmail)
+"?subject=Besuchsbericht"
+"&body=" + bodyText
);

the html data are in a textarea and is defined as Graphic 16300 with ccsid(1200)


the pui link opens the outlook client , but the bodytext have the html tags ( eq <br> an so on )

if there a way to transform this ?
thanks a lot Michael

Re: print HTML Mail

Posted: Thu Jul 12, 2018 7:23 am
by TaskForce_Kerim
Hello Michael,

I know we talked about this already but I'd like to still answer your question here for future reference (and to possibly get a second opinion). "mailto" does not support MIME-type HTML for the email body. You can find this information in the RFC 6068 at https://tools.ietf.org/html/rfc6068
The "body" field value is intended to
contain the content for the first text/plain body part of the
message. The "body" pseudo header field is primarily intended for
the generation of short text messages for automatic processing (such
as "subscribe" messages for mailing lists), not for general MIME
bodies.
If you want to send html emails, a server-side solution might be the way to go.