CharsetMetaTagProcessing Enumeration
Defines the available modes which affect processing of META tags during parsing HTML body of the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public enum CharsetMetaTagProcessing
  Member nameValueDescription
DoNothing0 No modifications.
RemoveCharsetMetaTag1 Remove <META content="xxxxxx; charset=xxxxxx"> tag completely.
SetCorrectCharset2 Replace the value specified in charset parameter of the <META> tag with the target charset which will be used to output data to the client (according to MailMessage.Parser.CharsetConverter settings), or remove this tag completely if the target charset is not specified (the value of MailMessage.Parser.CharsetConverter.StringConversionConfig.ConversionMode is NoConversion).

If the HTML body of the message contains META tag with charset information, this may prevent the body from being properly displayed in the client browser if the HTML body content was converted from the original charset to another charset (for instance, if gb2312 (Chinese Simplified) text has been converted into UTF-8 which is a default response encoding of ASP.NET web applications). In such cases, it's recommended to tell MailBee to remove META tag containing charset information (RemoveCharsetMetaTag option).

You can set any of these modes via MailMessage.Parser.CharsetMetaTagMode property.

See Also