MsgConvertPreferAddressesFromInternetHeaders Property
Gets or sets whether From/To/CC/BCC addresses must be loaded from Internet headers of the .MSG message.

Namespace: MailBee.Outlook
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public bool PreferAddressesFromInternetHeaders { get; set; }

Property Value

Type: Boolean
The default value is true which means From/To/CC/BCC addresses will be taken from Internet headers if they are available. Otherwise, they will be taken from the designated properties of the .MSG structure (if they are available).
Remarks

.MSG messages store sender and recipients in two places - Internet headers and separate properties. Usually, they match. Sometimes, they don't. If you need a specific set of these values, you can change this property value to false. In this case MailBee will overwite From/To/CC/BCC values obtained from Internet headers with their versions from separate .MSG properties (if they are available).

If the .MSG message doesn't have Internet headers at all (i.e. it's a draft which has never been sent), it won't have Internet headers anyway and From/To/CC/BCC will be obtained from their designated properties only. The value of PreferAddressesFromInternetHeaders property won't matter in this case.

The same way, if the .MSG message does have Internet headers but doesn't have From/To/CC/BCC in separate properties, only values from Internet headers will be used regardless of PreferAddressesFromInternetHeaders property value. Shortly speaking, this property has effect only if both Internet headers and separate properties exist in the message so there is an ambiguity which one to use.

See Also