Author |
|
Luca Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 29 June 2005 at 10:09am | IP Logged
|
|
|
What is the meaning of "Message.AltBodyOptions" property? I could not find it in documentation.
Thanks
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 29 June 2005 at 11:07am | IP Logged
|
|
|
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 |
|
|