E-mail encoding is used to pass information from the sender to the recipient using a desired format. Typically ASCII encoding is used for all e- mails , but in case an alternative format is needed, the BodyEncoding property is available to change the encoding type. The Encoding object contains four enumerations of encoding. Different encoding schemes might be necessary for both older legacy systems, and when Unicode support for international characters is needed. Table 15.3 describes each of these. Table 15.3. E-Mail Encoding Types
To apply the encoding to the e-mail message body, the following syntax can be used: mailObj.BodyEncoding = Encoding.ASCII |