public class MultipartMailData extends TextMailData
Modifier and Type | Field and Description |
---|---|
protected List<FilePartData> |
fileParts |
bcc, bodyParts, cc, encryptionType, forceEncryption, from, reply, sendSeparateMails, subject, to
ADDRESS_SPLITTER
Constructor and Description |
---|
MultipartMailData(String subject,
String body,
String bodyMime,
javax.mail.Address from,
javax.mail.Address[] reply,
javax.mail.Address[] to,
File... attFiles) |
MultipartMailData(String subject,
String body,
String bodyMime,
javax.mail.Address from,
javax.mail.Address[] reply,
javax.mail.Address[] to,
URL... attFiles) |
MultipartMailData(String subject,
String body,
String bodyMime,
String from,
javax.mail.Address[] reply,
String senderName,
String to,
EMailEncrpytionType encryptionType,
File... attFiles) |
MultipartMailData(String subject,
String body,
String bodyMime,
String from,
String to,
DataSource... attFiles)
Deprecated.
use
MultipartMailData(String, String, String, String, String, File...) or
MultipartMailData(String, String, String, String, String, URL...) . DataSources will be ignored! |
MultipartMailData(String subject,
String body,
String bodyMime,
String from,
String to,
File... attFiles) |
MultipartMailData(String subject,
String body,
String bodyMime,
String from,
String senderName,
String to,
EMailEncrpytionType encryptionType,
File... attFiles) |
MultipartMailData(String subject,
String body,
String bodyMime,
String from,
String senderName,
String to,
File... attFiles) |
MultipartMailData(String subject,
String body,
String bodyMime,
String from,
String senderName,
String to,
URL... attFiles) |
MultipartMailData(String subject,
String body,
String bodyMime,
String from,
String to,
URL... attFiles) |
Modifier and Type | Method and Description |
---|---|
void |
addBody(String content,
String mimeType) |
void |
addFile(File... files) |
void |
addFile(URL... files) |
void |
addFilePart(File file) |
void |
addFilePart(URL url) |
List<FilePartData> |
getFileParts() |
List<File> |
getFiles()
Deprecated.
|
getAddressesByString, getBcc, getBody, getBodyMimeType, getBodyParts, getCc, getEncryptionType, getFrom, getReply, getSendSeparateMails, getSubject, getTo, setBcc, setBcc, setCc, setCc, setEncryptionType, setSendSeparateMails
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildMimeMessage, buildMimeParts, getMimeMessage
protected final List<FilePartData> fileParts
public MultipartMailData(String subject, String body, String bodyMime, String from, String to, File... attFiles) throws Exception
Exception
public MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, File... attFiles) throws Exception
Exception
public MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, EMailEncrpytionType encryptionType, File... attFiles) throws Exception
Exception
public MultipartMailData(String subject, String body, String bodyMime, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType, File... attFiles) throws Exception
Exception
public MultipartMailData(String subject, String body, String bodyMime, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to, File... attFiles) throws IOException
IOException
public MultipartMailData(String subject, String body, String bodyMime, String from, String to, URL... attFiles) throws Exception
Exception
public MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, URL... attFiles) throws Exception
Exception
public MultipartMailData(String subject, String body, String bodyMime, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to, URL... attFiles) throws Exception
Exception
@Deprecated public MultipartMailData(String subject, String body, String bodyMime, String from, String to, DataSource... attFiles) throws Exception
MultipartMailData(String, String, String, String, String, File...)
or
MultipartMailData(String, String, String, String, String, URL...)
. DataSources will be ignored!Exception
@Deprecated public List<File> getFiles()
public void addFile(File... files) throws IOException
IOException
public void addFile(URL... files) throws IOException, URISyntaxException
IOException
URISyntaxException
public void addFilePart(URL url) throws URISyntaxException, IOException
URISyntaxException
IOException
public void addFilePart(File file) throws IOException
IOException
public List<FilePartData> getFileParts()
getFileParts
in interface IBaseMailData
getFileParts
in class TextMailData
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.