CharsetMetaTagProcessing Enumeration |
Namespace: MailBee.Mime
Member name | Value | Description | |
---|---|---|---|
DoNothing | 0 | No modifications. | |
RemoveCharsetMetaTag | 1 | Remove <META content="xxxxxx; charset=xxxxxx"> tag completely. | |
SetCorrectCharset | 2 | 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.