Class MailDataBuilder
java.lang.Object
de.xima.fc.mdl.mail.MailDataBuilder
- Since:
- 31.07.25
- Author:
- Norman Lorenz
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<javax.mail.Address> protected List<BodyPartData> protected List<javax.mail.Address> protected javax.mail.Addressprotected List<javax.mail.Address> protected IMailSecurityConfigprotected booleanprotected Stringprotected List<javax.mail.Address> -
Method Summary
Modifier and TypeMethodDescriptionaddBcc(javax.mail.Address bcc) addBodyPart(BodyPartData bodyPart) addBodyPart(String body, String mimeType) addCc(javax.mail.Address cc) addFileByUrl(URL url) addFilePart(FilePartData filePart) addReply(javax.mail.Address reply) addTo(javax.mail.Address to) bcc(javax.mail.Address[] bcc) bodyParts(List<BodyPartData> bodyParts) build()cc(javax.mail.Address[] cc) fileParts(List<FilePartData> fileParts) from(javax.mail.Address from) static MailDataBuilderreply(javax.mail.Address[] reply) securityConfig(IMailSecurityConfig securityConfig) sendSeparateMails(boolean sendSeparateMails) to(javax.mail.Address[] to) protected static List<javax.mail.Address> toAddressList(String addresses) protected static <T> List<T> toList(T[] to)
-
Field Details
-
subject
-
to
-
reply
-
cc
-
bcc
-
from
protected javax.mail.Address from -
sendSeparateMails
protected boolean sendSeparateMails -
securityConfig
-
bodyParts
-
headers
-
-
Method Details
-
newInstance
-
toAddressList
-
toList
-
addBcc
-
addBcc
- Throws:
javax.mail.internet.AddressException
-
addBodyPart
-
addBodyPart
-
addCc
-
addCc
- Throws:
javax.mail.internet.AddressException
-
addFile
- Throws:
IOException
-
addFileByUrl
- Throws:
URISyntaxExceptionIOException
-
addFilePart
-
addReply
- Throws:
javax.mail.internet.AddressException
-
addReply
-
addTo
-
addTo
- Throws:
javax.mail.internet.AddressException
-
bcc
-
bcc
- Throws:
javax.mail.internet.AddressException
-
bodyParts
-
build
-
cc
-
cc
- Throws:
javax.mail.internet.AddressException
-
fileParts
-
files
- Throws:
IOException
-
files
- Throws:
IOException
-
from
-
from
- Throws:
javax.mail.internet.AddressException
-
from
public MailDataBuilder from(String address, String SenderName) throws javax.mail.internet.AddressException, UnsupportedEncodingException - Throws:
javax.mail.internet.AddressExceptionUnsupportedEncodingException
-
headers
-
reply
-
reply
- Throws:
javax.mail.internet.AddressException
-
securityConfig
-
sendSeparateMails
-
subject
-
to
- Throws:
javax.mail.internet.AddressException
-
to
-
to
- Throws:
javax.mail.internet.AddressException
-