public class MailMessage extends Object implements com.aspose.ms.System.IDisposable, IPreferredTextEncodingProvider, IMessage, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<MailMessage>
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.
Constructor and Description |
---|
MailMessage()
Initializes a new instance of the
MailMessage class |
MailMessage(MailAddress from,
MailAddress to)
Initializes a new instance of the
MailMessage class |
MailMessage(String from,
String to)
Initializes a new instance of the
MailMessage class |
MailMessage(String from,
String to,
String subject,
String body)
Initializes a new instance of the
MailMessage class |
Modifier and Type | Method and Description |
---|---|
void |
addAlternateView(AlternateView view)
Add an alternate view to message
|
void |
addAttachment(Attachment attachment)
Add an attachment to message
|
MailMessage |
attachSignature(byte[] certificateRawData,
String certificatePassword)
Creates a signed message.
|
BounceResult |
checkBounced()
Checks whether this message can be treated as a bounce message.
|
void |
checkSignature()
Checking signature exsisting MailMessage.
|
static boolean |
checkSignature(InputStream stream)
Checks the signature of the specified eml message.
|
static boolean |
checkSignature(String fileName)
Checks the signature of the specified eml file.
|
MailMessage |
createReadReceipt(String from,
String bodyText)
Creates the read receipt.
|
MailMessage |
decrypt()
Decrypts this message
|
MailMessage |
decrypt(byte[] certificateRawData,
String certificatePassword)
Decrypts this message
|
MailMessage |
deepClone()
Clones this instance
|
void |
dispose()
Releases all resources used by the MailMessage
|
protected void |
dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources
|
MailMessage |
dKIMSign(com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider rsa,
DKIMSignatureInfo signatureInfo)
Signs this message using DKIM (DomainKeys Identified Mail) signature.
|
MailMessage |
encrypt(byte[] certificateRawData,
String certificatePassword)
Encrypts this message
|
AlternateViewCollection |
getAlternateViews()
Gets the collection of alternate views of message
|
AttachmentCollection |
getAttachments()
Gets the collection of attachments of message
|
MailAddressCollection |
getBcc()
Gets or sets the address collection
that contains the BCC recipients of message
|
String |
getBody()
Gets or sets the plain text representation of message's body.
|
Charset |
getBodyEncoding()
Gets or sets encoding of body
|
int |
getBodyType()
Gets the type of the body.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection |
getCc()
Gets CC recipients
|
MailAddressCollection |
getCC()
Gets or sets the address collection
that contains the CC recipients
|
Date |
getDate()
Gets or sets the date of message
|
int |
getDeliveryNotificationOptions()
Gets or sets the delivery notifications
|
MailAddress |
getFrom()
Gets or sets the from address
|
HeaderCollection |
getHeaders()
Gets headers collection of message
|
String |
getHtmlBody()
Gets or sets html body
|
String |
getHtmlBodyText()
Gets the message htmlbody as plain text.
|
LinkedResourceCollection |
getLinkedResources()
Gets the collection of linked resources of message
|
Date |
getLocalDate()
Gets the local date of message
|
String |
getMessageId()
Gets or sets the message id
|
Charset |
getPreferredTextEncoding()
Gets or sets preferred encoding for all text properties
|
boolean |
getPreserveOriginalBoundaries()
Deprecated.
|
boolean |
getPreserveOriginalDates()
Deprecated.
|
MailPriority |
getPriority()
Gets or sets the priority of message
|
MailAddressCollection |
getReadReceiptTo()
Gets or sets the read receipt address.
|
MailAddressCollection |
getReplyToList()
Gets or sets the list of addresses
to reply to for the mail message
|
MailAddress |
getReversePath()
Gets or sets ReversePath address
|
MailAddress |
getSender()
Gets or sets sender address
|
MailSensitivity |
getSensitivity()
Gets or sets the sensitivity of message
|
String |
getSubject()
Gets or sets the subject line
|
Charset |
getSubjectEncoding()
Gets or sets the encoding of subject
|
String |
getTextBody()
Deprecated.
|
double |
getTimeZoneOffset()
Gets or sets the Coordinated Universal Time (UTC)
offset for the message dates.
|
MailAddressCollection |
getTo()
Gets or sets the address collection that contains
the recipients of message
|
String |
getXMailer()
Gets or sets the X-Mailer the software
that created the e-mail message
|
void |
importMessage(InputStream stream)
Imports message from stream
|
boolean |
isBodyHtml()
Gets or sets a value indicating
whether the message body is in Html
|
void |
isBodyHtml(boolean value)
Gets or sets a value indicating
whether the message body is in Html
|
boolean |
isDraft()
Gets or sets value that indicates whether or not a message has been sent.
|
void |
isDraft(boolean value)
Gets or sets value that indicates whether or not a message has been sent.
|
boolean |
isEncrypted()
Gets a value indicating whether the message is encrypted.
|
boolean |
isLocalDate() |
boolean |
isReadOnly()
Gets a value indicating
whether the message is read only
|
boolean |
isSigned()
Gets a value indicating whether the message is signed.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<MailMessage> |
iterator()
Returns an enumerator that iterates through a collection.
|
static MailMessage |
load(InputStream stream)
Load message from stream
|
static MailMessage |
load(InputStream stream,
LoadOptions options)
Load message from stream with additional options.
|
static MailMessage |
load(InputStream stream,
MailMessageLoadOptions options)
Deprecated.
|
static MailMessage |
load(String fileName)
Load message from file
|
static MailMessage |
load(String fileName,
LoadOptions options)
Load message from file with additional options.
|
static MailMessage |
load(String fileName,
MailMessageLoadOptions options)
Deprecated.
|
static MailMessage |
loadFromTnef(InputStream stream)
Deprecated.
|
static MailMessage |
loadFromTnef(String fileName)
Deprecated.
|
void |
recomposeTnefContent()
Composes the TNEF content.
|
MailMessage |
removeSignature()
Remove signature
|
void |
save(OutputStream stream)
Save message as a stream
|
void |
save(OutputStream stream,
int mode)
Deprecated.
|
void |
save(OutputStream stream,
MailMessageSaveType savetype)
Deprecated.
|
void |
save(OutputStream stream,
MailMessageSaveType savetype,
int saveOptions)
Deprecated.
|
void |
save(OutputStream stream,
MessageFormat format)
Deprecated.
|
void |
save(OutputStream stream,
MessageFormat format,
int saveOptions)
Deprecated.
|
void |
save(OutputStream stream,
SaveOptions options)
Save message as a stream with additional options.
|
void |
save(String fileName)
Save message as a file
|
void |
save(String fileName,
int mode)
Deprecated.
|
void |
save(String fileName,
MailMessageSaveType savetype)
Deprecated.
|
void |
save(String fileName,
MailMessageSaveType savetype,
int saveOptions)
Deprecated.
|
void |
save(String fileName,
MessageFormat format)
Deprecated.
|
void |
save(String fileName,
MessageFormat format,
int saveOptions)
Deprecated.
|
void |
save(String fileName,
SaveOptions options)
Save message as a file with additional options.
|
void |
setBcc(MailAddressCollection value)
Gets or sets the address collection
that contains the BCC recipients of message
|
void |
setBody(String value)
Gets or sets the plain text representation of message's body.
|
void |
setBodyEncoding(Charset value)
Gets or sets encoding of body
|
void |
setCC(MailAddressCollection value)
Gets or sets the address collection
that contains the CC recipients
|
void |
setDate(Date value)
Gets or sets the date of message
|
void |
setDeliveryNotificationOptions(int value)
Gets or sets the delivery notifications
|
void |
setFrom(IMailAddress value)
Gets BCC recipients
|
void |
setFrom(MailAddress value)
Gets or sets the from address
|
void |
setHtmlBody(String value)
Gets or sets html body
|
void |
setMessageId(String value)
Gets or sets the message id
|
void |
setPreferredTextEncoding(Charset value)
Gets or sets preferred encoding for all text properties
|
void |
setPreserveOriginalBoundaries(boolean value)
Deprecated.
|
void |
setPreserveOriginalDates(boolean value)
Deprecated.
|
void |
setPriority(MailPriority value)
Gets or sets the priority of message
|
void |
setReadReceiptTo(MailAddressCollection value)
Gets or sets the read receipt address.
|
void |
setReplyToList(MailAddressCollection value)
Gets or sets the list of addresses
to reply to for the mail message
|
void |
setReversePath(MailAddress value)
Gets or sets ReversePath address
|
void |
setSender(MailAddress value)
Gets or sets sender address
|
void |
setSensitivity(MailSensitivity value)
Gets or sets the sensitivity of message
|
void |
setSubject(String value)
Gets or sets the subject line
|
void |
setSubjectEncoding(Charset value)
Gets or sets the encoding of subject
|
void |
setTextBody(String value)
Deprecated.
|
void |
setTimeZoneOffset(double value)
Gets or sets the Coordinated Universal Time (UTC)
offset for the message dates.
|
void |
setTo(MailAddressCollection value)
Gets or sets the address collection that contains
the recipients of message
|
void |
setXMailer(String value)
Gets or sets the X-Mailer the software
that created the e-mail message
|
static EmlValidationErrorCollection |
validateMessage(InputStream stream)
Validate eml message for corresponding to mime specification.
|
static EmlValidationErrorCollection |
validateMessage(String fileName)
Validate eml message for corresponding to mime specification.
|
public MailMessage(String from, String to)
Initializes a new instance of the MailMessage
class
from
- Sender addressto
- Recipient addresspublic MailMessage()
Initializes a new instance of the MailMessage
class
public MailMessage(String from, String to, String subject, String body)
Initializes a new instance of the MailMessage
class
from
- Sender addressto
- Recipient addresssubject
- Message subjectbody
- Message bodypublic MailMessage(MailAddress from, MailAddress to)
Initializes a new instance of the MailMessage
class
from
- Sender addressto
- Recipient addresspublic Charset getPreferredTextEncoding()
Gets or sets preferred encoding for all text properties
getPreferredTextEncoding
in interface IPreferredTextEncodingProvider
Charset
object.public void setPreferredTextEncoding(Charset value)
Gets or sets preferred encoding for all text properties
setPreferredTextEncoding
in interface IPreferredTextEncodingProvider
value
- a Charset
object.public MailAddress getFrom()
Gets or sets the from address
getFrom
in interface IMessage
MailAddress
object.public void setFrom(MailAddress value)
Gets or sets the from address
value
- a MailAddress
object.public MailAddress getSender()
Gets or sets sender address
MailAddress
object.public void setSender(MailAddress value)
Gets or sets sender address
value
- a MailAddress
object.public MailAddress getReversePath()
Gets or sets ReversePath address
MailAddress
object.public void setReversePath(MailAddress value)
Gets or sets ReversePath address
value
- a MailAddress
object.public MailAddressCollection getReplyToList()
Gets or sets the list of addresses to reply to for the mail message
MailAddressCollection
object.public void setReplyToList(MailAddressCollection value)
Gets or sets the list of addresses to reply to for the mail message
value
- a MailAddressCollection
object.public MailAddressCollection getTo()
Gets or sets the address collection that contains the recipients of message
getTo
in interface IMessage
MailAddressCollection
object.public void setTo(MailAddressCollection value)
Gets or sets the address collection that contains the recipients of message
value
- a MailAddressCollection
object.public MailAddressCollection getBcc()
Gets or sets the address collection that contains the BCC recipients of message
getBcc
in interface IMessage
MailAddressCollection
object.public void setBcc(MailAddressCollection value)
Gets or sets the address collection that contains the BCC recipients of message
value
- a MailAddressCollection
object.public MailAddressCollection getCC()
Gets or sets the address collection that contains the CC recipients
MailAddressCollection
object.public void setCC(MailAddressCollection value)
Gets or sets the address collection that contains the CC recipients
value
- a MailAddressCollection
object.public MailPriority getPriority()
Gets or sets the priority of message
MailPriority
object.public void setPriority(MailPriority value)
Gets or sets the priority of message
value
- a MailPriority
object.public MailSensitivity getSensitivity()
Gets or sets the sensitivity of message
MailSensitivity
object.public void setSensitivity(MailSensitivity value)
Gets or sets the sensitivity of message
value
- a MailSensitivity
object.public int getDeliveryNotificationOptions()
Gets or sets the delivery notifications
public void setDeliveryNotificationOptions(int value)
Gets or sets the delivery notifications
value
- a int.public String getSubject()
Gets or sets the subject line
getSubject
in interface IMessage
String
object.public void setSubject(String value)
Gets or sets the subject line
setSubject
in interface IMessage
public double getTimeZoneOffset()
Gets or sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC.
public void setTimeZoneOffset(double value)
Gets or sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC.
public Date getDate()
Gets or sets the date of message
public Date getLocalDate()
Gets the local date of message
public boolean isLocalDate()
public void setDate(Date value)
Gets or sets the date of message
public void setMessageId(String value)
Gets or sets the message id
value
- a String
object.public String getXMailer()
Gets or sets the X-Mailer the software that created the e-mail message
String
object.public void setXMailer(String value)
Gets or sets the X-Mailer the software that created the e-mail message
value
- a String
object.public Charset getSubjectEncoding()
Gets or sets the encoding of subject
public void setSubjectEncoding(Charset value)
Gets or sets the encoding of subject
public HeaderCollection getHeaders()
Gets headers collection of message
HeaderCollection
object.@Deprecated public String getTextBody()
Gets or sets plain text body
String
object.@Deprecated public void setTextBody(String value)
Gets or sets plain text body
value
- a String
object.public String getHtmlBody()
Gets or sets html body
getHtmlBody
in interface IMessage
String
object.public void setHtmlBody(String value)
Gets or sets html body
setHtmlBody
in interface IMessage
public String getBody()
Gets or sets the plain text representation of message's body.
public void setBody(String value)
Gets or sets the plain text representation of message's body.
public String getHtmlBodyText()
Gets the message htmlbody as plain text.
String
object.public Charset getBodyEncoding()
Gets or sets encoding of body
public void setBodyEncoding(Charset value)
Gets or sets encoding of body
public boolean isBodyHtml()
Gets or sets a value indicating whether the message body is in Html
public void isBodyHtml(boolean value)
Gets or sets a value indicating whether the message body is in Html
value
- a boolean.public boolean isSigned()
Gets a value indicating whether the message is signed.
public boolean isEncrypted()
Gets a value indicating whether the message is encrypted.
public boolean isReadOnly()
Gets a value indicating whether the message is read only
public boolean isDraft()
Gets or sets value that indicates whether or not a message has been sent.
public void isDraft(boolean value)
Gets or sets value that indicates whether or not a message has been sent.
value
- a boolean.@Deprecated public boolean getPreserveOriginalDates()
Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when saving a message
@Deprecated public void setPreserveOriginalDates(boolean value)
Gets or sets a value indicating whether it is necessary to generate new saving and modification dates when saving a message
value
- a boolean.@Deprecated public boolean getPreserveOriginalBoundaries()
Defines whether need keep original boundaries in mail message when saving or not.
@Deprecated public void setPreserveOriginalBoundaries(boolean value)
Defines whether need keep original boundaries in mail message when saving or not.
value
- a boolean.public AttachmentCollection getAttachments()
Gets the collection of attachments of message
getAttachments
in interface IMessage
AttachmentCollection
object.public LinkedResourceCollection getLinkedResources()
Gets the collection of linked resources of message
LinkedResourceCollection
object.public AlternateViewCollection getAlternateViews()
Gets the collection of alternate views of message
AlternateViewCollection
object.public int getBodyType()
Gets the type of the body.
getBodyType
in interface IMessage
public com.aspose.ms.System.Collections.Generic.IGenericCollection getCc()
Gets CC recipients
public void setFrom(IMailAddress value)
Gets BCC recipients
public static MailMessage load(String fileName)
Load message from file
fileName
- Message file name. The message file must be in eml or msg format.public static MailMessage load(InputStream stream)
Load message from stream
stream
- Stream that represents message in eml or msg formatpublic static MailMessage load(String fileName, LoadOptions options)
Load message from file with additional options.
fileName
- Source file pathSystem.String
.options
- Additional options Aspose.Email.Mail.LoadOptions
.Aspose.Email.Mail.MailMessage
.com.aspose.ms.System.ArgumentNullException
- If fileName
is null.public static MailMessage load(InputStream stream, LoadOptions options)
Load message from stream with additional options.
stream
- Source streamSystem.IO.Stream
.options
- Additional options Aspose.Email.Mail.LoadOptions
.Aspose.Email.Mail.MailMessage
.com.aspose.ms.System.ArgumentNullException
- If stream
is null.@Deprecated public static MailMessage load(String fileName, MailMessageLoadOptions options)
Load message from file with additional options.
fileName
- Source file pathSystem.String
.options
- Additional options Aspose.Email.Mail.MailMessageLoadOptions
.Aspose.Email.Mail.MailMessage
.com.aspose.ms.System.ArgumentNullException
- If fileName
is null.@Deprecated public static MailMessage load(InputStream stream, MailMessageLoadOptions options)
Load message from stream with additional options.
stream
- Source streamSystem.IO.Stream
.options
- Additional options Aspose.Email.Mail.MailMessageLoadOptions
.Aspose.Email.Mail.MailMessage
.com.aspose.ms.System.ArgumentNullException
- If stream
is null.@Deprecated public static MailMessage loadFromTnef(InputStream stream)
Loads message from Transport Neutral Encapsulation Format (TNEF) data structure
stream
- A stream representing message data in TNEF formatMailMessage
com.aspose.ms.System.ArgumentNullException
- stream
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support reading@Deprecated public static MailMessage loadFromTnef(String fileName)
Loads message from Transport Neutral Encapsulation Format (TNEF) data structure
fileName
- Name of file containing message data in TNEF formatMailMessage
com.aspose.ms.System.ArgumentException
- fileName
is null
or empty
public static boolean checkSignature(String fileName)
Checks the signature of the specified eml file.
fileName
- A file name (eml).True
if signature is valid; otherwise, false
.com.aspose.ms.System.ArgumentException
- fileName
is null
or empty
.com.aspose.ms.System.IO.FileNotFoundException
- The specified fileName
doesn't exist.com.aspose.ms.System.NotSupportedException
- Signature type is not supported.com.aspose.ms.System.InvalidOperationException
- Mail message is not signed or signature type is not specified.public static boolean checkSignature(InputStream stream)
Checks the signature of the specified eml message.
stream
- A stream containing the message in eml format.True
if signature is valid; otherwise, false
.com.aspose.ms.System.ArgumentNullException
- stream
is null
.com.aspose.ms.System.NotSupportedException
- Signature type is not supported.com.aspose.ms.System.InvalidOperationException
- Mail message is not signed or signature type is not specified.public static EmlValidationErrorCollection validateMessage(String fileName)
Validate eml message for corresponding to mime specification.
fileName
- A file name (eml).EmlValidationErrorCollection
containing the found validation error messages.com.aspose.ms.System.ArgumentException
- fileName
is null
or empty
.com.aspose.ms.System.IO.FileNotFoundException
- The specified fileName
doesn't exist.public static EmlValidationErrorCollection validateMessage(InputStream stream)
Validate eml message for corresponding to mime specification.
stream
- A stream containing the message in eml format.EmlValidationErrorCollection
containing the found validation error messages.com.aspose.ms.System.ArgumentNullException
- stream
is null
.public void importMessage(InputStream stream)
Imports message from stream
stream
- System.IO.Streampublic MailMessage deepClone()
Clones this instance
@Deprecated public void save(String fileName, int mode)
Save message as a file
fileName
- Name of the filemode
- FileCompatibilityMode
that defines inner conversions that are necessarily to be done
public 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.
@Deprecated public void save(OutputStream stream, int mode)
Save message as a stream
stream
- The stream into which message is savedmode
- FileCompatibilityMode
that defines inner conversions that are necessarily to be done
public void save(String fileName)
Save message as a file
public void save(String fileName, SaveOptions options)
Save message as a file with additional options.
fileName
- Stream into which message is saved.options
- Additional options for savingSaveOptions
.public void save(OutputStream stream, SaveOptions options)
Save message as a stream with additional options.
stream
- Stream into which message is saved.options
- Additional options for savingSaveOptions
.public void save(OutputStream stream)
Save message as a stream
public MailAddressCollection getReadReceiptTo()
Gets or sets the read receipt address.
Value: TheMailAddressCollection
that representspublic void setReadReceiptTo(MailAddressCollection value)
Gets or sets the read receipt address.
Value: TheMailAddressCollection
that representspublic MailMessage createReadReceipt(String from, 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.MailMessage
that represents the read receipt.@Deprecated public void save(OutputStream stream, MessageFormat format)
Message saving as a stream in one of the supported formats
stream
- Stream into which message is savedformat
- Format into which message is saved@Deprecated public void save(OutputStream stream, MessageFormat format, int saveOptions)
Message saving as a stream in one of the supported formats
stream
- Stream into which message is savedformat
- Format into which message is savedsaveOptions
- Save options@Deprecated public void save(OutputStream stream, MailMessageSaveType savetype)
Message saving into a stream in one of the supported formats
@Deprecated public void save(OutputStream stream, MailMessageSaveType savetype, int saveOptions)
Message saving into a stream in one of the supported formats
stream
- Stream into which message is savedsavetype
- Format into which message is savedsaveOptions
- Save options@Deprecated public void save(String fileName, MailMessageSaveType savetype)
Message saving into a file into one of the supported formats
@Deprecated public void save(String fileName, MailMessageSaveType savetype, int saveOptions)
Message saving into a file into one of the supported formats
fileName
- Full file namesavetype
- Format into which message is savedsaveOptions
- Save options@Deprecated public void save(String fileName, MessageFormat format)
Message saving into a file into one of the supported formats
fileName
- Full file nameformat
- Format into which message is saved@Deprecated public void save(String fileName, MessageFormat format, int saveOptions)
Message saving into a file into one of the supported formats
fileName
- Full file nameformat
- Format into which message is savedsaveOptions
- Save optionspublic void addAlternateView(AlternateView view)
Add an alternate view to message
view
- Alternate view for addingpublic void addAttachment(Attachment attachment)
Add an attachment to message
attachment
- Attachment for addingpublic MailMessage attachSignature(byte[] certificateRawData, String certificatePassword)
Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.
certificateRawData
- X.509 certificate.certificatePassword
- The password required to access the X.509 certificate datapublic void checkSignature()
Checking signature exsisting MailMessage.
com.aspose.ms.System.InvalidOperationException
- Throws if Mail message is not signed.public MailMessage removeSignature()
Remove signature
public MailMessage decrypt()
Decrypts this message
public MailMessage decrypt(byte[] certificateRawData, String certificatePassword)
Decrypts this message
certificateRawData
- System.Security.Cryptography.X509Certificates.X509Certificate2certificatePassword
- The password required to access the X.509 certificate datapublic MailMessage encrypt(byte[] certificateRawData, String certificatePassword)
Encrypts this message
certificate
- X509 certificate to encrypt messagepublic void dispose()
Releases all resources used by the MailMessage
dispose
in interface com.aspose.ms.System.IDisposable
public MailMessage dKIMSign(com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider rsa, DKIMSignatureInfo signatureInfo)
Signs this message using DKIM (DomainKeys Identified Mail) signature.
rsa
- RSA class containing private key used for signing.signatureInfo
- DKIM signature information.MailMessage
object.public BounceResult checkBounced()
Checks whether this message can be treated as a bounce message.
Aspose.Email.Mail.Bounce.BounceResult
.public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<MailMessage> iterator()
Returns an enumerator that iterates through a collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<MailMessage>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<MailMessage>
iterator
in interface Iterable<MailMessage>
protected void dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources
disposing
- true
to release both managed and unmanaged resources; false
to release only unmanaged resources.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.