public class EmailAttachment
extends java.lang.Object
implements java.io.Serializable
EmailInfo
,
EmailService
,
Serialized FormConstructor and Description |
---|
EmailAttachment(byte[] data,
java.lang.String name)
Create file attachment.
|
EmailAttachment(byte[] data,
java.lang.String name,
java.lang.String contentId)
Create inline attachment (e.g.
|
EmailAttachment(byte[] data,
java.lang.String name,
java.lang.String contentId,
java.lang.String disposition,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
static EmailAttachment |
createTextAttachment(java.lang.String text,
java.lang.String encoding,
java.lang.String name) |
java.lang.String |
getContentId() |
byte[] |
getData() |
java.lang.String |
getDisposition() |
java.lang.String |
getEncoding() |
java.lang.String |
getName() |
public EmailAttachment(byte[] data, java.lang.String name)
public EmailAttachment(byte[] data, java.lang.String name, java.lang.String contentId)
public EmailAttachment(byte[] data, java.lang.String name, @Nullable java.lang.String contentId, java.lang.String disposition, @Nullable java.lang.String encoding)
public byte[] getData()
public java.lang.String getName()
public java.lang.String getContentId()
public java.lang.String getDisposition()
public java.lang.String getEncoding()
public static EmailAttachment createTextAttachment(java.lang.String text, java.lang.String encoding, java.lang.String name)