EmailContent

Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart, com.groupdocs.watermark.contents.Content

public final class EmailContent extends Content

Represents an email message.

Learn more:

Constructors

Constructor Description
EmailContent(StreamContainer stream, StrategyManager strategyManager, FileFormatInfo fileFormatInfo, EmailLoadOptions emailLoadOptions, WatermarkerSettings watermarkerSettings)

Methods

Method Description
getAttachments() Gets the collection of all attachments of the email message.
getEmbeddedObjects() Gets the collection of all embedded objects of the email message.
getFrom() Gets the from address of the email message.
getTo() Gets the collection of recipients of the email message.
getCc() Gets the collection of CC (carbon copy) recipients of the email message.
getBcc() Gets the collection of BCC (blind carbon copy) recipients of the email message.
getSubject() Gets the subject of the email message.
setSubject(String value) Sets the subject of the email message.
getBody() Gets the plain text representation of the message body.
setBody(String value) Sets the plain text representation of the message body.
getHtmlBody() Gets the html representation of the message body.
setHtmlBody(String value) Sets the html representation of the message body.
getBodyType() Gets the type of the email message body.
performSave(String filePath)
performSave(String filePath, SaveOptions saveOptions)
performSave(OutputStream stream)
performSave(OutputStream stream, SaveOptions saveOptions)
getDocumentInfo()
getFileType()
add(Watermark watermark, WatermarkOptions options)
generatePreview(PreviewOptions previewOptions)

EmailContent(StreamContainer stream, StrategyManager strategyManager, FileFormatInfo fileFormatInfo, EmailLoadOptions emailLoadOptions, WatermarkerSettings watermarkerSettings)

public EmailContent(StreamContainer stream, StrategyManager<Integer> strategyManager, FileFormatInfo fileFormatInfo, EmailLoadOptions emailLoadOptions, WatermarkerSettings watermarkerSettings)

Parameters:

Parameter Type Description
stream com.groupdocs.watermark.internal.StreamContainer
strategyManager com.groupdocs.watermark.internal.StrategyManager<java.lang.Integer>
fileFormatInfo com.aspose.email.FileFormatInfo
emailLoadOptions EmailLoadOptions
watermarkerSettings WatermarkerSettings

getAttachments()

public final EmailAttachmentCollection getAttachments()

Gets the collection of all attachments of the email message.

Returns: EmailAttachmentCollection - The collection of all attachments of the email message.

getEmbeddedObjects()

public final EmailEmbeddedObjectCollection getEmbeddedObjects()

Gets the collection of all embedded objects of the email message.

Returns: EmailEmbeddedObjectCollection - The collection of all embedded objects of the email message.

getFrom()

public final EmailAddress getFrom()

Gets the from address of the email message.

Returns: EmailAddress - The from address of the email message.

getTo()

public final EmailAddressCollection getTo()

Gets the collection of recipients of the email message.

Returns: EmailAddressCollection - The collection of recipients of the email message.

getCc()

public final EmailAddressCollection getCc()

Gets the collection of CC (carbon copy) recipients of the email message.

Returns: EmailAddressCollection - The collection of CC (carbon copy) recipients of the email message.

getBcc()

public final EmailAddressCollection getBcc()

Gets the collection of BCC (blind carbon copy) recipients of the email message.

Returns: EmailAddressCollection - The collection of BCC (blind carbon copy) recipients of the email message.

getSubject()

public final String getSubject()

Gets the subject of the email message.

Returns: java.lang.String - The subject of the email message.

setSubject(String value)

public final void setSubject(String value)

Sets the subject of the email message.

Parameters:

Parameter Type Description
value java.lang.String The subject of the email message.

getBody()

public final String getBody()

Gets the plain text representation of the message body.

Returns: java.lang.String - The plain text representation of the message body.

setBody(String value)

public final void setBody(String value)

Sets the plain text representation of the message body.

Parameters:

Parameter Type Description
value java.lang.String The plain text representation of the message body.

getHtmlBody()

public final String getHtmlBody()

Gets the html representation of the message body.

Returns: java.lang.String - The html representation of the message body.

setHtmlBody(String value)

public final void setHtmlBody(String value)

Sets the html representation of the message body.

Parameters:

Parameter Type Description
value java.lang.String The html representation of the message body.

getBodyType()

public final int getBodyType()

Gets the type of the email message body.

Returns: int - The type of the email message body.

performSave(String filePath)

public void performSave(String filePath)

Parameters:

Parameter Type Description
filePath java.lang.String

performSave(String filePath, SaveOptions saveOptions)

public void performSave(String filePath, SaveOptions saveOptions)

Parameters:

Parameter Type Description
filePath java.lang.String
saveOptions SaveOptions

performSave(OutputStream stream)

public void performSave(OutputStream stream)

Parameters:

Parameter Type Description
stream java.io.OutputStream

performSave(OutputStream stream, SaveOptions saveOptions)

public void performSave(OutputStream stream, SaveOptions saveOptions)

Parameters:

Parameter Type Description
stream java.io.OutputStream
saveOptions SaveOptions

getDocumentInfo()

public IDocumentInfo getDocumentInfo()

Returns: IDocumentInfo

getFileType()

public FileType getFileType()

Returns: FileType

add(Watermark watermark, WatermarkOptions options)

public void add(Watermark watermark, WatermarkOptions options)

Parameters:

Parameter Type Description
watermark Watermark
options WatermarkOptions

generatePreview(PreviewOptions previewOptions)

public void generatePreview(PreviewOptions previewOptions)

Parameters:

Parameter Type Description
previewOptions PreviewOptions