javax.activation.DataSource
. Note that the InputStream returned by the DataSource implementation needs to be a fresh one on each call, as JavaMail will invoke getInputStream()
multiple times.
@param attachmentFilename the name of the attachment as it willappear in the mail (the content type will be determined by this)
@param dataSource the javax.activation.DataSource
to takethe content from, determining the InputStream and the content type
@throws MessagingException in case of errors
@see #addAttachment(String,org.springframework.core.io.InputStreamSource)
@see #addAttachment(String,java.io.File)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|