EmlSaveOptions

EmlSaveOptions class

Inherits: Aspose::Email::SaveOptions

Allows to specify additional options when saving MailMessage to Eml and Emlx format.

The following example shows how to load and Save an EML message Preserving the embedded message format.

MailMessage mailMessage = MailMessage.Load("source.eml");
// Save as eml with preserved embedded message format
EmlSaveOptions emlSaveOptions = new EmlSaveOptions(MailMessageSaveType.EmlFormat)
{
     PreserveEmbeddedMessageFormat = true
};
    mailMessage.Save("target.eml", emlSaveOptions);
Dim mailMessage As MailMessage = MailMessage.Load("source.eml")
 
' Save as eml with preserved embedded message format
Dim emlSaveOptions As EmlSaveOptions = New EmlSaveOptions(MailMessageSaveType.EmlFormat) With {
   .PreserveEmbeddedMessageFormat = True
   }
        }
mailMessage.Save("target.eml", emlSaveOptions)

Constructors

NameDescription
EmlSaveOptionsInitializes a new instance of this class that can be used to save a MailMessage in the Eml and Emlx format.

Methods

NameDescription
get_BoundariesTemplateGets the boundary template for the message. Default value is null.
get_CheckBodyContentEncodingDefines whether need check message body content encoding when saving. By default the value is false.
get_FileCompatibilityModeDefines inner conversions,that are necessarily to be done when saving a message. The default value is FileCompatibilityMode.None.
get_PreserveEmbeddedMessageFormatGets a value indicating whether it is necessary to preserve MSG format of embedded message at converting to MailMessage . By default the value is false.
get_PreserveSignedContentGets a value indicating whether it is necessary to save signed message without changes of content to provide correctly structure of digital sign. By default the value is false.
set_BoundariesTemplateSets the boundary template for the message. Default value is null.
set_CheckBodyContentEncodingDefines whether need check message body content encoding when saving. By default the value is false.
set_FileCompatibilityModeDefines inner conversions,that are necessarily to be done when saving a message. The default value is FileCompatibilityMode.None.
set_PreserveEmbeddedMessageFormatSets a value indicating whether it is necessary to preserve MSG format of embedded message at converting to MailMessage . By default the value is false.
set_PreserveSignedContentSets a value indicating whether it is necessary to save signed message without changes of content to provide correctly structure of digital sign. By default the value is false.