public final class EmailContent extends Content
Learn more:
| Constructor and Description |
|---|
EmailContent(StreamContainer stream,
StrategyManager<Integer> strategyManager,
com.aspose.email.FileFormatInfo fileFormatInfo,
EmailLoadOptions emailLoadOptions,
WatermarkerSettings watermarkerSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Watermark watermark,
WatermarkOptions options) |
protected void |
dispose(boolean disposing)
Disposes the current instance.
|
void |
generatePreview(PreviewOptions previewOptions) |
EmailAttachmentCollection |
getAttachments()
Gets the collection of all attachments of the email message.
|
EmailAddressCollection |
getBcc()
Gets the collection of BCC (blind carbon copy) recipients of the email message.
|
String |
getBody()
Gets the plain text representation of the message body.
|
int |
getBodyType()
Gets the type of the email message body.
|
EmailAddressCollection |
getCc()
Gets the collection of CC (carbon copy) recipients of the email message.
|
IDocumentInfo |
getDocumentInfo() |
EmailEmbeddedObjectCollection |
getEmbeddedObjects()
Gets the collection of all embedded objects of the email message.
|
FileType |
getFileType() |
EmailAddress |
getFrom()
Gets the from address of the email message.
|
String |
getHtmlBody()
Gets the html representation of the message body.
|
String |
getSubject()
Gets the subject of the email message.
|
EmailAddressCollection |
getTo()
Gets the collection of recipients of the email message.
|
void |
performSave(OutputStream stream) |
void |
performSave(OutputStream stream,
SaveOptions saveOptions) |
void |
performSave(String filePath) |
void |
performSave(String filePath,
SaveOptions saveOptions) |
void |
setBody(String value)
Sets the plain text representation of the message body.
|
void |
setHtmlBody(String value)
Sets the html representation of the message body.
|
void |
setSubject(String value)
Sets the subject of the email message.
|
close, dispose, getInfo, getInfo, getSearchableObjects, getStream, getWatermarkerSettings, registerDisposableResource, save, save, save, save, setSearchableObjectsaddWatermark, afterWatermarkAdding, checkWatermarkingLicenseRestrictions, findImages, findImages, getParts, getSearchWatermarksInParts, getStrategyManager, getTopParent, search, search, setParts, tryGetWatermarkerSettingspublic EmailContent(StreamContainer stream, StrategyManager<Integer> strategyManager, com.aspose.email.FileFormatInfo fileFormatInfo, EmailLoadOptions emailLoadOptions, WatermarkerSettings watermarkerSettings)
public void add(Watermark watermark, WatermarkOptions options)
protected void dispose(boolean disposing)
Disposes the current instance.
public void generatePreview(PreviewOptions previewOptions)
generatePreview in class Contentpublic final EmailAttachmentCollection getAttachments()
Gets the collection of all attachments of the email message.
public final EmailAddressCollection getBcc()
Gets the collection of BCC (blind carbon copy) recipients of the email message.
public final String getBody()
Gets the plain text representation of the message body.
public final int getBodyType()
Gets the type of the email message body.
public final EmailAddressCollection getCc()
Gets the collection of CC (carbon copy) recipients of the email message.
public IDocumentInfo getDocumentInfo()
getDocumentInfo in class Contentpublic final EmailEmbeddedObjectCollection getEmbeddedObjects()
Gets the collection of all embedded objects of the email message.
public FileType getFileType()
getFileType in class Contentpublic final EmailAddress getFrom()
Gets the from address of the email message.
public final String getHtmlBody()
Gets the html representation of the message body.
public final String getSubject()
Gets the subject of the email message.
public final EmailAddressCollection getTo()
Gets the collection of recipients of the email message.
public void performSave(OutputStream stream)
performSave in class Contentpublic void performSave(OutputStream stream, SaveOptions saveOptions)
performSave in class Contentpublic void performSave(String filePath)
performSave in class Contentpublic void performSave(String filePath, SaveOptions saveOptions)
performSave in class Contentpublic final void setBody(String value)
Sets the plain text representation of the message body.
value - The plain text representation of the message body.public final void setHtmlBody(String value)
Sets the html representation of the message body.
value - The html representation of the message body.public final void setSubject(String value)
Sets the subject of the email message.
value - The subject of the email message.Copyright © 2026. All rights reserved.