MailBee.NET Objects 3.1

CharsetMetaTagProcessing Enumeration

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

public enum CharsetMetaTagProcessing

Remarks

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.

Members

Member NameDescription
DoNothing No modifications.
RemoveCharsetMetaTag Remove <META content="xxxxxx; charset=xxxxxx"> tag completely.
SetCorrectCharset 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).

Requirements

Namespace: MailBee.Mime

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee.Mime Namespace | Parser | CharsetMetaTagMode