|Constructor and Description|
Generates a new attachment with the given name, mime type and contents.
|Modifier and Type||Method and Description|
addHeader, getContentType, getHeaders, getName, getOutputStream, isAlternative, withContentType
name- the name of the attached file
mimeType- the mime type of the file. Use
MimeHelperto determine it at runtime if it is not know in advance
resource- the resource to use as contents of the template
asAlternative- determines if this attachment is an alternative to the text content of the mail (true) or a real attachment (false)
Copyright © 2018. All rights reserved.