Question:
Our program has a standard interface to receive System.Text.Encoding to specify subject/content encoding of an email, how can I map these values to Email.Charset property of your component?
Answer:
The System.Text.Encoding class includes two properties that provide string representations of the charset: EncodingName and WebName. EncodingName is more descriptive and will contain a human readable name such as "Japanese (Shift-JIS)" or "Western European (Windows)". WebName is the name you would pass to any Charset property of an Chilkat object. It would contain something like "shift_jis" or "Windows-1252″.
For example:
Chilkat.Email email = new Chilkat.Email();
System.Text.Encoding enc = System.Text.Encoding.GetEncoding(932);
email.Charset = enc.WebName;