NetTalk E-Mail > E-Mail - Ask For Help

Sending emails without the text part.

(1/1)

Rob Kolanko:
Some email clients will show the text part before the HTML part of the email. Thus when sending an email with Nettalk, is there any way, not create the text part of the email body.  I have called the SetRequiredMessageSize method with text size parameter equal to zero and not assigned anything to the MessageText property. But the email generated, still has text message part before the HTML part as shown below:

----=_NextPart_001_d20120215t225629.74c3r60669
Content-Type: text/plain;
   charset=us-ascii
Content-Transfer-Encoding: 7bit

----=_NextPart_001_d20120215t225629.74c3r60669
Content-Type: text/html;
   charset=us-ascii
Content-Transfer-Encoding: quoted-printable
<HTML stuff.....

Robert Kolanko

Bruce:
as far as I can see, not without hacking the class. The multi-part mail you are sending has the text part boundaries included, even if the contents of that part is blank.

Some email clients will only use the text part, so sending the mail without a text part is probably a bad idea anyway.
 
cheers
Bruce

Navigation

[0] Message Index

Go to full version