Provides possibility to handle rendering of hyperlink in custom style. More...
Inherits IDisposable, Aspose::Email::IPreferredTextEncodingProvider, System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Email::MailMessage > >, and Aspose::Email::IMessage.
Inherited by Aspose::Email::Amp::AmpMessage.
Public Member Functions | |
System::String | get_Preamble () |
Gets a preamble text. It is located before the first boundary and generally includes an explanatory note to non-MIME conformant readers. More... | |
void | set_Preamble (System::String value) |
Sets a preamble text. It is located before the first boundary and generally includes an explanatory note to non-MIME conformant readers. More... | |
System::String | get_Epilogue () |
Gets an epilogue text. It is located after the last boundary. More... | |
void | set_Epilogue (System::String value) |
Sets an epilogue text. It is located after the last boundary. More... | |
System::SharedPtr< System::Collections::Generic::Dictionary< System::SharedPtr< Mapi::PropertyDescriptor >, System::SharedPtr< System::Object > > > | get_ExtendedProperties () const |
Gets extended properties of a message. More... | |
bool | get_PreserveTnefAttachment () const |
Controls TNEF attachment load/save behaviour More... | |
void | set_PreserveTnefAttachment (bool value) |
Controls TNEF attachment load/save behaviour More... | |
System::SharedPtr< System::Text::Encoding > | get_PreferredTextEncoding () override |
Gets preferred encoding for all text properties More... | |
void | set_PreferredTextEncoding (System::SharedPtr< System::Text::Encoding > value) override |
Sets preferred encoding for all text properties More... | |
System::ArrayPtr< System::String > | get_Categories () const |
Gets exchange message categories More... | |
void | set_Categories (System::ArrayPtr< System::String > value) |
Sets exchange message categories More... | |
System::SharedPtr< MailAddress > | get_From () override |
Gets the from address More... | |
void | set_From (System::SharedPtr< MailAddress > value) override |
Sets the from address More... | |
virtual System::SharedPtr< MailAddress > | get_Sender () |
Gets sender address More... | |
virtual void | set_Sender (System::SharedPtr< MailAddress > value) |
Sets sender address More... | |
virtual System::SharedPtr< MailAddress > | get_ReversePath () |
Gets ReversePath address More... | |
virtual void | set_ReversePath (System::SharedPtr< MailAddress > value) |
Sets ReversePath address More... | |
virtual System::SharedPtr< MailAddressCollection > | get_ReplyToList () |
Gets the list of addresses to reply to for the mail message More... | |
virtual void | set_ReplyToList (System::SharedPtr< MailAddressCollection > value) |
Sets the list of addresses to reply to for the mail message More... | |
System::SharedPtr< MailAddressCollection > | get_To () override |
Gets the address collection that contains the recipients of message More... | |
virtual void | set_To (System::SharedPtr< MailAddressCollection > value) |
Sets the address collection that contains the recipients of message More... | |
System::SharedPtr< MailAddressCollection > | get_Bcc () override |
Gets the address collection that contains the BCC recipients of message More... | |
virtual void | set_Bcc (System::SharedPtr< MailAddressCollection > value) |
Sets the address collection that contains the BCC recipients of message More... | |
bool | get_SuppressBcc () |
Indicates whether Bcc header is suppressed in MIME. More... | |
void | set_SuppressBcc (bool value) |
Indicates whether Bcc header is suppressed in MIME. More... | |
System::SharedPtr< MailAddressCollection > | get_CC () override |
Gets the address collection that contains the CC recipients More... | |
virtual void | set_CC (System::SharedPtr< MailAddressCollection > value) |
Sets the address collection that contains the CC recipients More... | |
virtual MailPriority | get_Priority () |
Gets the priority of message More... | |
virtual void | set_Priority (MailPriority value) |
Sets the priority of message More... | |
virtual MailSensitivity | get_Sensitivity () |
Gets the sensitivity of message More... | |
virtual void | set_Sensitivity (MailSensitivity value) |
Sets the sensitivity of message More... | |
virtual Aspose::Email::DeliveryNotificationOptions | get_DeliveryNotificationOptions () |
Gets the delivery notifications More... | |
virtual void | set_DeliveryNotificationOptions (Aspose::Email::DeliveryNotificationOptions value) |
Sets the delivery notifications More... | |
System::String | get_Subject () override |
Gets the subject line More... | |
void | set_Subject (System::String value) override |
Sets the subject line More... | |
System::String | get_ListUnsubscribe () |
The List-Unsubscribe field describes the command (preferably using mail) to directly unsubscribe the user(removing them from the list). For more details please see https://tools.ietf.org/html/rfc2369 More... | |
void | set_ListUnsubscribe (System::String value) |
The List-Unsubscribe field describes the command (preferably using mail) to directly unsubscribe the user(removing them from the list). For more details please see https://tools.ietf.org/html/rfc2369 More... | |
System::TimeSpan | get_TimeZoneOffset () |
Gets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC. More... | |
void | set_TimeZoneOffset (System::TimeSpan value) |
Sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC. More... | |
System::DateTime | get_Date () override |
Gets the date of message More... | |
virtual void | set_Date (System::DateTime value) |
Sets the date of message More... | |
virtual System::String | get_MessageId () |
Gets the message id More... | |
virtual void | set_MessageId (System::String value) |
Sets the message id More... | |
virtual System::String | get_XMailer () |
Gets the X-Mailer the software that created the e-mail message More... | |
virtual void | set_XMailer (System::String value) |
Sets the X-Mailer the software that created the e-mail message More... | |
virtual System::SharedPtr< System::Text::Encoding > | get_SubjectEncoding () |
Gets the encoding of subject More... | |
virtual void | set_SubjectEncoding (System::SharedPtr< System::Text::Encoding > value) |
Sets the encoding of subject More... | |
virtual System::SharedPtr< Mime::HeaderCollection > | get_Headers () |
Gets headers collection of message More... | |
System::String | get_HtmlBody () override |
Gets html body More... | |
void | set_HtmlBody (System::String value) override |
Sets html body More... | |
System::String | get_Body () override |
Gets the plain text representation of message's body. If the text/plain part is present in a message, the propery returns its text data. Otherwise, property returns the text content of the HtmlBody property without html markup. More... | |
void | set_Body (System::String value) override |
Sets the plain text representation of message's body. If the text/plain part is present in a message, the propery returns its text data. Otherwise, property returns the text content of the HtmlBody property without html markup. More... | |
virtual System::SharedPtr< System::Text::Encoding > | get_BodyEncoding () |
Gets encoding of body More... | |
virtual void | set_BodyEncoding (System::SharedPtr< System::Text::Encoding > value) |
Sets encoding of body More... | |
virtual bool | get_IsBodyHtml () |
Gets a value indicating whether the message body is in Html More... | |
virtual void | set_IsBodyHtml (bool value) |
Sets a value indicating whether the message body is in Html More... | |
virtual bool | get_IsSigned () |
Gets a value indicating whether the message is signed. More... | |
virtual bool | get_IsEncrypted () |
Gets a value indicating whether the message is encrypted. More... | |
virtual bool | get_IsReadOnly () |
Gets a value indicating whether the message is read only More... | |
virtual System::SharedPtr< MailboxInfo > | get_ItemId () |
Represents identification information about message in a mailbox. More... | |
virtual void | set_ItemId (System::SharedPtr< MailboxInfo > value) |
Represents identification information about message in a mailbox. More... | |
bool | get_IsRead () |
virtual bool | get_IsDraft () |
Gets value that indicates whether or not a message has been sent. More... | |
virtual void | set_IsDraft (bool value) |
Sets value that indicates whether or not a message has been sent. More... | |
System::SharedPtr< AttachmentCollection > | get_Attachments () override |
Gets the collection of attachments of message More... | |
virtual System::SharedPtr< LinkedResourceCollection > | get_LinkedResources () |
Gets the collection of linked resources of message More... | |
virtual System::SharedPtr< AlternateViewCollection > | get_AlternateViews () |
Gets the collection of alternate views of message More... | |
Mapi::BodyContentType | get_BodyType () override |
Gets the type of the body. More... | |
virtual bool | get_OriginalIsTnef () |
Gets a value indicating whether original EML message is in TNEF format. More... | |
System::SharedPtr< Aspose::Email::Message > | get_Message () const |
System::SharedPtr< Aspose::Email::Tnef::TnefAttachment > | get_TnefAttachment () const |
Gets the tnef attachment. More... | |
void | set_TnefAttachment (System::SharedPtr< Aspose::Email::Tnef::TnefAttachment > value) |
Gets the tnef attachment. More... | |
System::SharedPtr< MailAddressCollection > | get_ReadReceiptTo () |
Gets the read receipt address. More... | |
void | set_ReadReceiptTo (System::SharedPtr< MailAddressCollection > value) |
Sets the read receipt address. More... | |
bool | get_ReadReceiptRequested () const |
void | set_ReadReceiptRequested (bool value) |
System::SharedPtr< System::Object > | get_VentLicense () const |
This stores the venture licensing state instead of 2 obvious fields such as string value for watermark and some value indicating license is set or not. More... | |
bool | get_IsEmpty () |
MailMessage (System::String from, System::String to) | |
Initializes a new instance of the MailMessage class More... | |
MailMessage () | |
Initializes a new instance of the MailMessage class More... | |
MailMessage (bool increaseCredit) | |
Initializes a new instance of the MailMessage class More... | |
MailMessage (System::String from, System::String to, System::String subject, System::String body) | |
Initializes a new instance of the MailMessage class More... | |
MailMessage (System::SharedPtr< MailAddress > from, System::SharedPtr< MailAddress > to) | |
Initializes a new instance of the MailMessage class More... | |
virtual void | set_From (System::String value) |
virtual void | set_Sender (System::String value) |
virtual void | set_ReplyToList (System::String value) |
virtual void | set_ReplyToList (System::SharedPtr< MailAddress > value) |
virtual void | set_To (System::String value) |
virtual void | set_To (System::SharedPtr< MailAddress > value) |
System::String | GetAlternateViewContent (System::String mediaType) |
Gets the content as a string from the specified AlternateView. More... | |
virtual void | Import (System::SharedPtr< System::IO::Stream > stream) |
Populates a T:System::Runtime::Serialization::SerializationInfo with the data needed to serialize the target object. More... | |
virtual System::SharedPtr< MailMessage > | Clone () |
Clones this instance More... | |
void | RecomposeTnefContent () |
Composes the TNEF content. Note, that tnef attachment is composed if a message initially contained TNEF and was loaded without FileCompatibilityMode.PreserveTnefAttachments flag, That is this method doesn't create tnef message out of the regular one. More... | |
virtual void | SetHtmlBody (System::String value, bool detectEncoding) |
Sets html body. More... | |
virtual System::String | GetHtmlBodyText (bool showUrl) |
Gets the message html body as plain text. This method parses the HtmlBody property and returns plain text content ignoring the html markup. More... | |
virtual System::String | GetHtmlBodyText (Common::Transform::HyperlinkRenderingCallback hyperlinkRenderingCallback) |
Gets the message htmlbody as plain text. More... | |
void | Save (System::String fileName) override |
Save message as a file More... | |
virtual void | Save (System::String fileName, System::SharedPtr< SaveOptions > options) |
Save message as a file with additional options. More... | |
virtual void | Save (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< SaveOptions > options) |
Save message as a stream with additional options. More... | |
int32_t | GetHashCode () const override |
Returns a hash code for object More... | |
bool | Equals (System::SharedPtr< System::Object > obj) override |
Determines whether the specified Object is equal to the current Object. More... | |
void | Save (System::SharedPtr< System::IO::Stream > stream) override |
Save message as a stream More... | |
virtual void | set_ReadReceiptTo (System::String value) |
System::SharedPtr< MailMessage > | CreateReadReceipt (System::String from, System::String bodyText) |
Creates the read receipt. More... | |
virtual void | AddAlternateView (System::SharedPtr< AlternateView > view) |
Add an alternate view to message More... | |
virtual void | AddAttachment (System::SharedPtr< Attachment > attachment) |
Add an attachment to message More... | |
void | Dispose () override |
Releases all resources used by the MailMessage More... | |
virtual System::SharedPtr< Bounce::BounceResult > | CheckBounced () |
Checks whether this message can be treated as a bounce message. More... | |
void | OnConversionProgress (System::SharedPtr< ProgressEventHandlerInfo > info) |
void | ImportHeaders (System::SharedPtr< Aspose::Email::Message > message) |
void | ImportHeaders (System::SharedPtr< System::IO::Stream > stream) |
System::String | GetHeadersAsString () |
void | ForceTextContentType () |
void | SetMessageId (System::String value) |
void | Send (System::SharedPtr< Mime::BaseWriter > writer, System::SharedPtr< ProgressEventHandlerInfo > progressInfo) |
System::String | BuildDeliveryStatusNotificationString () |
int32_t | GetLinkedResourceCount () |
Gets the count of message linked resources and alternative view linked resourced. More... | |
void | SetVentureLicense (System::SharedPtr< System::Object > ventureLicense) |
All Aspose products should implement this method. It is called by a GroupDocs product to indicate whether GroupDocs itself is licensed or not and specify a custom watermark. When GroupDocs is licensed, this document instance should behave as licensed too even if the Aspose product is not licensed. More... | |
System::SharedPtr< System::Collections::Generic::ListExt< System::String > > | SetContent () |
System::ArrayPtr< uint8_t > | CreateContentData (System::SharedPtr< System::Collections::Generic::ListExt< System::String >> &signedBoundaries) |
System::ArrayPtr< uint8_t > | CreateDKIMContentData (System::SharedPtr< System::Collections::Generic::ListExt< System::String >> &signedBoundaries) |
void | Replace (System::String mediaType, System::SharedPtr< AlternateView > view) |
void | LoadMessageStructure (System::SharedPtr< Clients::Imap::Commands::BodyStructureMultiPart > bodyStructure, System::SharedPtr< Clients::Imap::Commands::BodyStructurePart > &textBodyPart, System::SharedPtr< Clients::Imap::Commands::BodyStructurePart > &htmlBodyPart) |
Loads the message structure and search text body and html body parts' indexes More... | |
System::SharedPtr< AlternateView > | GetHtmlView () |
System::SharedPtr< AlternateView > | GetTextPlainView () |
System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< AttachmentBase > > > | ListAttachmentBase () |
System::String | ToString () const override |
Returns a string that represents the current object. More... | |
Static Public Member Functions | |
static System::SharedPtr< MailMessage > | Load (System::String fileName) |
Load message from file More... | |
static System::SharedPtr< MailMessage > | Load (System::SharedPtr< System::IO::Stream > stream) |
Load message from stream More... | |
static System::SharedPtr< MailMessage > | LoadInternal (System::SharedPtr< System::IO::Stream > stream) |
Load message from stream. NOTE!!! Call this method if you don't need to increase customer consumption credit for Dynabic.Metered. More... | |
static System::SharedPtr< MailMessage > | Load (System::String fileName, System::SharedPtr< LoadOptions > options) |
Load message from file with additional options. More... | |
static System::SharedPtr< MailMessage > | Load (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< LoadOptions > options) |
Load message from stream with additional options. More... | |
static System::SharedPtr< MailMessage > | LoadInternal (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< LoadOptions > options) |
Load message from stream with additional options. NOTE!!! Call this method if you don't need to increase customer consumption credit for Dynabic.Metered. More... | |
static System::SharedPtr< System::IO::MemoryStream > | GetEmlStream (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< System::Collections::Generic::ListExt< uint8_t >> &headerBytes) |
static System::SharedPtr< EmlValidationErrorCollection > | ValidateMessage (System::String fileName) |
Validate eml message for corresponding to mime specification. More... | |
static System::SharedPtr< EmlValidationErrorCollection > | ValidateMessage (System::SharedPtr< System::IO::Stream > stream) |
Validate eml message for corresponding to mime specification. More... | |
static System::SharedPtr< System::Text::Encoding > | TryGetEncodingFromHtmlBody (System::String htmlBody) |
Public Attributes | |
System::SharedPtr< AlternateViewCollection > | views |
System::SharedPtr< AttachmentCollection > | attachments |
System::SharedPtr< LinkedResourceCollection > | linkedResources |
System::String | body |
System::String | bodyHtml |
System::SharedPtr< System::Text::Encoding > | bodyEncoding |
bool | isBodyHtml |
bool | disposed |
System::SharedPtr< Aspose::Email::Message > | message |
Aspose::Email::DeliveryNotificationOptions | deliveryStatusNotification |
System::SharedPtr< System::Collections::Generic::ListExt< System::String > > | boundaries |
bool | isProcessedByMboxrdStorageWriter |
The property is true, if the current message is processed by a MboxrdStorageWriter. See EMAILNET-38895 and EMAILNET-39005 More... | |
System::Event< void(System::SharedPtr< ProgressEventHandlerInfo >)> | ConversionProgressEvent |
Event to notify user about progress of conversion/saving. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Releases unmanaged and - optionally - managed resources More... | |
virtual | ~MailMessage () |
Provides possibility to handle rendering of hyperlink in custom style.
source |
Represents an e-mail message. It allows to access message properties, ex. subject, body, sender and recipients addreses, etc. Also it can be sent and delivered by means of supported mail protocols.
The following example shows how to create a new Email Message and save with SaveOptions.
[C#]
[Visual Basic]
Aspose::Email::MailMessage::MailMessage | ( | System::String | from, |
System::String | to | ||
) |
Initializes a new instance of the MailMessage class
from | Sender address |
to | Recipient address |
Aspose::Email::MailMessage::MailMessage | ( | ) |
Initializes a new instance of the MailMessage class
Aspose::Email::MailMessage::MailMessage | ( | bool | increaseCredit | ) |
Initializes a new instance of the MailMessage class
Aspose::Email::MailMessage::MailMessage | ( | System::String | from, |
System::String | to, | ||
System::String | subject, | ||
System::String | body | ||
) |
Initializes a new instance of the MailMessage class
from | Sender address |
to | Recipient address |
subject | Message subject |
body | Message body |
Aspose::Email::MailMessage::MailMessage | ( | System::SharedPtr< MailAddress > | from, |
System::SharedPtr< MailAddress > | to | ||
) |
Initializes a new instance of the MailMessage class
from | Sender address |
to | Recipient address |
|
protectedvirtual |
|
virtual |
Add an alternate view to message
view | Alternate view for adding |
|
virtual |
Add an attachment to message
attachment | Attachment for adding |
The following example shows how to add Attachments to MailMessage.
[C#]
[Visual Basic]
System::String Aspose::Email::MailMessage::BuildDeliveryStatusNotificationString | ( | ) |
|
virtual |
Checks whether this message can be treated as a bounce message.
|
virtual |
Clones this instance
System::ArrayPtr<uint8_t> Aspose::Email::MailMessage::CreateContentData | ( | System::SharedPtr< System::Collections::Generic::ListExt< System::String >> & | signedBoundaries | ) |
System::ArrayPtr<uint8_t> Aspose::Email::MailMessage::CreateDKIMContentData | ( | System::SharedPtr< System::Collections::Generic::ListExt< System::String >> & | signedBoundaries | ) |
System::SharedPtr<MailMessage> Aspose::Email::MailMessage::CreateReadReceipt | ( | System::String | from, |
System::String | bodyText | ||
) |
Creates the read receipt.
from | String that represents the sender address. |
bodyText | The message body text. The default message body text will be applied if this parameter is null or empty. |
|
override |
Releases all resources used by the MailMessage
|
protectedvirtual |
Releases unmanaged and - optionally - managed resources
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
|
override |
Determines whether the specified Object is equal to the current Object.
obj | The Object to compare with the current Object. |
void Aspose::Email::MailMessage::ForceTextContentType | ( | ) |
|
virtual |
Gets the collection of alternate views of message
|
overridevirtual |
Gets the collection of attachments of message
Implements Aspose::Email::IMessage.
|
overridevirtual |
Gets the address collection that contains the BCC recipients of message
Implements Aspose::Email::IMessage.
|
overridevirtual |
Gets the plain text representation of message's body. If the text/plain part is present in a message, the propery returns its text data. Otherwise, property returns the text content of the HtmlBody property without html markup.
Implements Aspose::Email::IMessage.
|
virtual |
Gets encoding of body
|
overridevirtual |
Gets the type of the body.
Implements Aspose::Email::IMessage.
System::ArrayPtr<System::String> Aspose::Email::MailMessage::get_Categories | ( | ) | const |
Gets exchange message categories
|
overridevirtual |
Gets the address collection that contains the CC recipients
Implements Aspose::Email::IMessage.
|
overridevirtual |
Gets the date of message
Implements Aspose::Email::IMessage.
|
virtual |
Gets the delivery notifications
System::String Aspose::Email::MailMessage::get_Epilogue | ( | ) |
Gets an epilogue text. It is located after the last boundary.
The string value that represents an epilogue.
System::SharedPtr<System::Collections::Generic::Dictionary<System::SharedPtr<Mapi::PropertyDescriptor>, System::SharedPtr<System::Object> > > Aspose::Email::MailMessage::get_ExtendedProperties | ( | ) | const |
Gets extended properties of a message.
|
overridevirtual |
Gets the from address
Implements Aspose::Email::IMessage.
|
virtual |
Gets headers collection of message
|
overridevirtual |
Gets html body
Implements Aspose::Email::IMessage.
|
virtual |
Gets a value indicating whether the message body is in Html
|
virtual |
Gets value that indicates whether or not a message has been sent.
bool Aspose::Email::MailMessage::get_IsEmpty | ( | ) |
|
virtual |
Gets a value indicating whether the message is encrypted.
bool Aspose::Email::MailMessage::get_IsRead | ( | ) |
|
virtual |
Gets a value indicating whether the message is read only
|
virtual |
Gets a value indicating whether the message is signed.
|
virtual |
Represents identification information about message in a mailbox.
|
virtual |
Gets the collection of linked resources of message
System::String Aspose::Email::MailMessage::get_ListUnsubscribe | ( | ) |
The List-Unsubscribe field describes the command (preferably using mail) to directly unsubscribe the user(removing them from the list). For more details please see https://tools.ietf.org/html/rfc2369
System::SharedPtr<Aspose::Email::Message> Aspose::Email::MailMessage::get_Message | ( | ) | const |
|
virtual |
Gets the message id
|
virtual |
Gets a value indicating whether original EML message is in TNEF format.
System::String Aspose::Email::MailMessage::get_Preamble | ( | ) |
Gets a preamble text. It is located before the first boundary and generally includes an explanatory note to non-MIME conformant readers.
The string value that represents a preamble.
|
overridevirtual |
Gets preferred encoding for all text properties
Implements Aspose::Email::IPreferredTextEncodingProvider.
bool Aspose::Email::MailMessage::get_PreserveTnefAttachment | ( | ) | const |
Controls TNEF attachment load/save behaviour
|
virtual |
Gets the priority of message
bool Aspose::Email::MailMessage::get_ReadReceiptRequested | ( | ) | const |
System::SharedPtr<MailAddressCollection> Aspose::Email::MailMessage::get_ReadReceiptTo | ( | ) |
Gets the read receipt address.
The MailAddressCollection that represents
|
virtual |
Gets the list of addresses to reply to for the mail message
|
virtual |
Gets ReversePath address
|
virtual |
Gets sender address
|
virtual |
Gets the sensitivity of message
|
overridevirtual |
Gets the subject line
Implements Aspose::Email::IMessage.
|
virtual |
Gets the encoding of subject
bool Aspose::Email::MailMessage::get_SuppressBcc | ( | ) |
Indicates whether Bcc header is suppressed in MIME.
System::TimeSpan Aspose::Email::MailMessage::get_TimeZoneOffset | ( | ) |
Gets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC.
System::SharedPtr<Aspose::Email::Tnef::TnefAttachment> Aspose::Email::MailMessage::get_TnefAttachment | ( | ) | const |
Gets the tnef attachment.
The tnef attachment.
|
overridevirtual |
Gets the address collection that contains the recipients of message
Implements Aspose::Email::IMessage.
System::SharedPtr<System::Object> Aspose::Email::MailMessage::get_VentLicense | ( | ) | const |
This stores the venture licensing state instead of 2 obvious fields such as string value for watermark and some value indicating license is set or not.
|
virtual |
Gets the X-Mailer the software that created the e-mail message
System::String Aspose::Email::MailMessage::GetAlternateViewContent | ( | System::String | mediaType | ) |
Gets the content as a string from the specified AlternateView.
mediaType | MediaType of needed AlternateView. |
|
static |
|
override |
Returns a hash code for object
System::String Aspose::Email::MailMessage::GetHeadersAsString | ( | ) |
|
virtual |
Gets the message html body as plain text. This method parses the HtmlBody property and returns plain text content ignoring the html markup.
showUrl | Defines need to show URL in text. |
The following example shows how to get an email message�s HTML body as plain text.
[C#]
[Visual Basic]
|
virtual |
Gets the message htmlbody as plain text.
hyperlinkRenderingCallback | Reference to custom method for handling rendering of hyperlink. |
System::SharedPtr<AlternateView> Aspose::Email::MailMessage::GetHtmlView | ( | ) |
int32_t Aspose::Email::MailMessage::GetLinkedResourceCount | ( | ) |
Gets the count of message linked resources and alternative view linked resourced.
System::SharedPtr<AlternateView> Aspose::Email::MailMessage::GetTextPlainView | ( | ) |
|
virtual |
Populates a T:System::Runtime::Serialization::SerializationInfo with the data needed to serialize the target object.
info | The T:System::Runtime::Serialization::SerializationInfo to populate with data. |
context | The destination (see T:System::Runtime::Serialization::StreamingContext) for this serialization. |
T:System::Security::SecurityException | The caller does not have the required permission. |
void Aspose::Email::MailMessage::ImportHeaders | ( | System::SharedPtr< Aspose::Email::Message > | message | ) |
void Aspose::Email::MailMessage::ImportHeaders | ( | System::SharedPtr< System::IO::Stream > | stream | ) |
System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<AttachmentBase> > > Aspose::Email::MailMessage::ListAttachmentBase | ( | ) |
|
static |
Load message from stream
stream | Stream that represents message in eml or msg format |
|
static |
Load message from stream with additional options.
stream | Source streamSystem::IO::Stream. |
options | Additional options LoadOptions. |
ArgumentNullException | If stream is null. |
|
static |
Load message from file
fileName | Message file name. The message file must be in eml or msg format. |
|
static |
Load message from file with additional options.
fileName | Source file pathSystem::String. |
options | Additional options LoadOptions. |
ArgumentNullException | If fileName is null. |
The following example shows how to load a Message with Load Options.
[C#]
[Visual Basic]
|
static |
Load message from stream. NOTE!!! Call this method if you don't need to increase customer consumption credit for Dynabic.Metered.
stream | Stream that represents message in eml or msg format |
|
static |
Load message from stream with additional options. NOTE!!! Call this method if you don't need to increase customer consumption credit for Dynabic.Metered.
stream | Source streamSystem::IO::Stream. |
options | Additional options LoadOptions. |
ArgumentNullException | If stream is null. |
void Aspose::Email::MailMessage::LoadMessageStructure | ( | System::SharedPtr< Clients::Imap::Commands::BodyStructureMultiPart > | bodyStructure, |
System::SharedPtr< Clients::Imap::Commands::BodyStructurePart > & | textBodyPart, | ||
System::SharedPtr< Clients::Imap::Commands::BodyStructurePart > & | htmlBodyPart | ||
) |
Loads the message structure and search text body and html body parts' indexes
bodyStructure | A BodyStructureMultiPart containing the message structure |
textBodyPart | An index of found text body |
htmlBodyPart | An index of found html body |
void Aspose::Email::MailMessage::OnConversionProgress | ( | System::SharedPtr< ProgressEventHandlerInfo > | info | ) |
void Aspose::Email::MailMessage::RecomposeTnefContent | ( | ) |
Composes the TNEF content. Note, that tnef attachment is composed if a message initially contained TNEF and was loaded without FileCompatibilityMode.PreserveTnefAttachments flag, That is this method doesn't create tnef message out of the regular one.
void Aspose::Email::MailMessage::Replace | ( | System::String | mediaType, |
System::SharedPtr< AlternateView > | view | ||
) |
|
overridevirtual |
Save message as a stream
stream | Stream into which message is saved |
Implements Aspose::Email::IMessage.
|
virtual |
Save message as a stream with additional options.
stream | Stream into which message is saved. |
options | Additional options for savingSaveOptions. |
Reimplemented in Aspose::Email::Amp::AmpMessage.
|
overridevirtual |
Save message as a file
fileName | Name of a file to save message. |
Implements Aspose::Email::IMessage.
|
virtual |
Save message as a file with additional options.
fileName | Stream into which message is saved. |
options | Additional options for savingSaveOptions. |
The following example shows how to save an email message as HTML with embedded images.
[C#]
[Visual Basic]
void Aspose::Email::MailMessage::Send | ( | System::SharedPtr< Mime::BaseWriter > | writer, |
System::SharedPtr< ProgressEventHandlerInfo > | progressInfo | ||
) |
|
virtual |
Sets the address collection that contains the BCC recipients of message
|
overridevirtual |
Sets the plain text representation of message's body. If the text/plain part is present in a message, the propery returns its text data. Otherwise, property returns the text content of the HtmlBody property without html markup.
Implements Aspose::Email::IMessage.
|
virtual |
Sets encoding of body
void Aspose::Email::MailMessage::set_Categories | ( | System::ArrayPtr< System::String > | value | ) |
Sets exchange message categories
|
virtual |
Sets the address collection that contains the CC recipients
|
virtual |
Sets the date of message
|
virtual |
Sets the delivery notifications
void Aspose::Email::MailMessage::set_Epilogue | ( | System::String | value | ) |
Sets an epilogue text. It is located after the last boundary.
The string value that represents an epilogue.
|
overridevirtual |
Sets the from address
Implements Aspose::Email::IMessage.
|
virtual |
|
overridevirtual |
Sets html body
Implements Aspose::Email::IMessage.
|
virtual |
Sets a value indicating whether the message body is in Html
|
virtual |
Sets value that indicates whether or not a message has been sent.
|
virtual |
Represents identification information about message in a mailbox.
void Aspose::Email::MailMessage::set_ListUnsubscribe | ( | System::String | value | ) |
The List-Unsubscribe field describes the command (preferably using mail) to directly unsubscribe the user(removing them from the list). For more details please see https://tools.ietf.org/html/rfc2369
|
virtual |
Sets the message id
void Aspose::Email::MailMessage::set_Preamble | ( | System::String | value | ) |
Sets a preamble text. It is located before the first boundary and generally includes an explanatory note to non-MIME conformant readers.
The string value that represents a preamble.
|
overridevirtual |
Sets preferred encoding for all text properties
Implements Aspose::Email::IPreferredTextEncodingProvider.
void Aspose::Email::MailMessage::set_PreserveTnefAttachment | ( | bool | value | ) |
Controls TNEF attachment load/save behaviour
|
virtual |
Sets the priority of message
void Aspose::Email::MailMessage::set_ReadReceiptRequested | ( | bool | value | ) |
void Aspose::Email::MailMessage::set_ReadReceiptTo | ( | System::SharedPtr< MailAddressCollection > | value | ) |
Sets the read receipt address.
The MailAddressCollection that represents
|
virtual |
|
virtual |
|
virtual |
Sets the list of addresses to reply to for the mail message
|
virtual |
|
virtual |
Sets ReversePath address
|
virtual |
Sets sender address
|
virtual |
|
virtual |
Sets the sensitivity of message
|
overridevirtual |
Sets the subject line
Implements Aspose::Email::IMessage.
|
virtual |
Sets the encoding of subject
void Aspose::Email::MailMessage::set_SuppressBcc | ( | bool | value | ) |
Indicates whether Bcc header is suppressed in MIME.
void Aspose::Email::MailMessage::set_TimeZoneOffset | ( | System::TimeSpan | value | ) |
Sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC.
void Aspose::Email::MailMessage::set_TnefAttachment | ( | System::SharedPtr< Aspose::Email::Tnef::TnefAttachment > | value | ) |
Gets the tnef attachment.
The tnef attachment.
|
virtual |
|
virtual |
Sets the address collection that contains the recipients of message
|
virtual |
|
virtual |
Sets the X-Mailer the software that created the e-mail message
System::SharedPtr<System::Collections::Generic::ListExt<System::String> > Aspose::Email::MailMessage::SetContent | ( | ) |
|
virtual |
Sets html body.
value | The HtmlBody content text. |
detectEncoding | Detect body encoding if no encoding is specified for the MailMessage. |
void Aspose::Email::MailMessage::SetMessageId | ( | System::String | value | ) |
void Aspose::Email::MailMessage::SetVentureLicense | ( | System::SharedPtr< System::Object > | ventureLicense | ) |
|
override |
Returns a string that represents the current object.
|
static |
|
static |
Validate eml message for corresponding to mime specification.
stream | A stream containing the message in eml format. |
ArgumentNullException | stream is null . |
|
static |
Validate eml message for corresponding to mime specification.
fileName | A file name (eml). |
ArgumentException | fileName is null or empty . |
FileNotFoundException | The specified fileName doesn't exist. |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
System::SharedPtr<AttachmentCollection> Aspose::Email::MailMessage::attachments |
System::String Aspose::Email::MailMessage::body |
System::SharedPtr<System::Text::Encoding> Aspose::Email::MailMessage::bodyEncoding |
System::String Aspose::Email::MailMessage::bodyHtml |
System::SharedPtr<System::Collections::Generic::ListExt<System::String> > Aspose::Email::MailMessage::boundaries |
System::Event<void(System::SharedPtr<ProgressEventHandlerInfo>)> Aspose::Email::MailMessage::ConversionProgressEvent |
Event to notify user about progress of conversion/saving.
Aspose::Email::DeliveryNotificationOptions Aspose::Email::MailMessage::deliveryStatusNotification |
bool Aspose::Email::MailMessage::disposed |
bool Aspose::Email::MailMessage::isBodyHtml |
bool Aspose::Email::MailMessage::isProcessedByMboxrdStorageWriter |
The property is true, if the current message is processed by a MboxrdStorageWriter. See EMAILNET-38895 and EMAILNET-39005
System::SharedPtr<LinkedResourceCollection> Aspose::Email::MailMessage::linkedResources |
System::SharedPtr<Aspose::Email::Message> Aspose::Email::MailMessage::message |
System::SharedPtr<AlternateViewCollection> Aspose::Email::MailMessage::views |