@param deviceMessageAttachment the device attachment to add.
org.apache.excalibur.source.Source
or {@link org.apache.cocoon.servlet.multipart.Part} or itssubclasses.
@param attachment to be send with the message
@see org.apache.excalibur.source.Source
The attachment can be any of: {@link org.apache.excalibur.source.Source}, {@link org.apache.cocoon.servlet.multipart.Part}, {@link java.io.InputStream}, byte[]
, {@link String}, or a subclass.
@param attachment to be send with the message
Used by:
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|