Provides enumered values for options of importing plain text body.
[Visual Basic] Public Enum ImportTextBodyOptions
[C#] public enum ImportTextBodyOptions
[C++] __value public enum ImportTextBodyOptions
[JScript] public enum ImportTextBodyOptions
Members
Members name | Description |
NoOptions | Specifies that the email imports plain text to Text Body only. |
ConvertHtmlToText | Specifies that the email imports html source to Text Body and removes all html tags. |
Example
[Visual Basic, C#] The following example demonstrates how to import remote & local html source with EASendMail SMTP Component. To get the full samples of EASendMail, please refer to Samples section.
[VB - Import Email Text Body] Dim oMail As SmtpMail = New SmtpMail("TryIt") oMail.ImportTextBody("http://google.com", _ ImportTextBodyOptions.ConvertHtmlToText) oMail.SaveAs("c:\google.eml", true) oMail.ImportTextBody("c:\test.txt", _ ImportTextBodyOptions.NoOptions) oMail.SaveAs("c:\test.eml", true)
[C# - Import Email Text Body] SmtpMail oMail = new SmtpMail("TryIt"); oMail.ImportTextBody("http://google.com", ImportTextBodyOptions.ConvertHtmlToText); oMail.SaveAs("c:\\google.eml", true); oMail.ImportTextBody("c:\\test.txt", _ ImportTextBodyOptions.NoOptions); oMail.SaveAs("c:\\test.eml", true);
See Also
SmtpMail.ImportTextBody Method
SmtpMail.TextBody Property
SmtpMail.ImportHtmlBody Method
SmtpMail.ImportHtml Method