public final class EmailContent extends Content
Learn more:
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing)
Disposes the current instance.
|
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.
|
EmailEmbeddedObjectCollection |
getEmbeddedObjects()
Gets the collection of all embedded objects of the email message.
|
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 |
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.
|
findImages, findImages, search, search
public final EmailAttachmentCollection getAttachments()
Gets the collection of all attachments of the email message.
public final EmailEmbeddedObjectCollection getEmbeddedObjects()
Gets the collection of all embedded objects of the email message.
public final EmailAddress getFrom()
Gets the from address of the email message.
public final EmailAddressCollection getTo()
Gets the collection of recipients of the email message.
public final EmailAddressCollection getCc()
Gets the collection of CC (carbon copy) recipients of the email message.
public final EmailAddressCollection getBcc()
Gets the collection of BCC (blind carbon copy) recipients of the email message.
public final String getSubject()
Gets the subject of the email message.
public final void setSubject(String value)
Sets the subject of the email message.
value
- The subject of the email message.public final String getBody()
Gets the plain text representation of the message body.
public 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 String getHtmlBody()
Gets the html 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 int getBodyType()
Gets the type of the email message body.