Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Message.AltBodyOptions Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Luca
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 29 June 2005 at 10:09am | IP Logged Quote Luca

What is the meaning of "Message.AltBodyOptions" property? I could not find it in documentation.

Thanks



Back to Top View Luca's Profile Search for other posts by Luca
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 29 June 2005 at 11:07am | IP Logged Quote Alex

AltBodyOptions is an advanced property which affects the way AltBodyText is generated. It should be used in very specific circumstances only.

By default, AltBodyText is filled with plain-text version of HTML mail. If there is no plain-text version in HTML mail, AltBodyText is generated by MailBee itself from HTML body. This default behaviour corresponds to AltBodyOptions=1.

But if AltBodyOptions=0, MailBee will never attempt to generate plain-text version of HTML body. Thus, AltBodyText will be non-empty only if plain-text version is supplied with the HTML message itself.

AltBodyOptions=2 forces MailBee to always generate plain-text version even it's available in the message itself. This is useful when messages have invalid plain-text version or it's very different from HTML version (typically SPAM messages).

If used, AltBodyOptions property must be set BEFORE the message is parsed. If you receive the message from POP3 server, you receive Message object which is already parsed, Thus, POP3 object also has AltBodyOptions property which needs to be set BEFORE calling POP3.RetrieveXXXXX (such as RetrieveSingleMessage) method.

AltBodyOptions is a bitmask property in fact, and can also affect how exactly AltBodyText is generated (for example, it's possible to force MailBee to automatically convert links in <A> tags like Outlook does, etc). There is also AltBodyHRefSuffix property which can be used in conjunction with AltBodyOptions.

If you're interested in advanced parsing of plain-text version of HTML message, please contact us at support@afterlogic.com for details.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide