public class MultipartMailData extends TextMailData
| Modifier and Type | Field and Description |
|---|---|
protected List<FilePartData> |
fileParts |
bcc, bodyParts, cc, encryptionType, forceEncryption, from, reply, sendSeparateMails, subject, toADDRESS_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,
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, setSendSeparateMailsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildMimeMessage, buildMimeParts, getMimeMessageprotected final List<FilePartData> fileParts
public MultipartMailData(String subject, String body, String bodyMime, String from, String to, File... attFiles) throws Exception
Exceptionpublic MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, File... attFiles) throws Exception
Exceptionpublic MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, EMailEncrpytionType encryptionType, File... attFiles) throws Exception
Exceptionpublic MultipartMailData(String subject, String body, String bodyMime, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to, File... attFiles) throws IOException
IOExceptionpublic MultipartMailData(String subject, String body, String bodyMime, String from, String to, URL... attFiles) throws Exception
Exceptionpublic MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, URL... attFiles) throws Exception
Exceptionpublic 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
IOExceptionpublic void addFile(URL... files) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic void addFilePart(URL url) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic void addFilePart(File file) throws IOException
IOExceptionpublic List<FilePartData> getFileParts()
getFileParts in interface IBaseMailDatagetFileParts in class TextMailDataCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.