public static class EmailTemplate.ByteArrayAttachment extends Object implements EmailTemplate.Attachment
| Constructor and Description | 
|---|
ByteArrayAttachment(String leafNameInclExtension,
                   String mimeType,
                   byte[] bytes)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getLeafNameInclExtension()
For example "invoice.pdf" 
 | 
String | 
getMimeType()
For example "application/pdf" 
 | 
InputStream | 
newInputStream()
To provide the bytes of the file 
 | 
public String getLeafNameInclExtension()
EmailTemplate.AttachmentgetLeafNameInclExtension in interface EmailTemplate.Attachmentpublic String getMimeType()
EmailTemplate.AttachmentgetMimeType in interface EmailTemplate.Attachmentpublic InputStream newInputStream()
EmailTemplate.AttachmentnewInputStream in interface EmailTemplate.Attachment