NetTalk Central

Author Topic: Sending emails without the text part.  (Read 4916 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Sending emails without the text part.
« on: February 16, 2012, 12:20:52 AM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Sending emails without the text part.
« Reply #1 on: March 23, 2012, 04:03:45 AM »
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