Package org.bgerp.util.mail
Class MailMsg
java.lang.Object
org.bgerp.util.mail.MailMsg
- Direct Known Subclasses:
MailMsg
E-Mail sender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getParamMailEncoding
(ConfigMap config) void
Sends simple text message.static void
setAttachContentTypeHeader
(javax.mail.internet.MimeBodyPart part) static void
setAttachFileName
(javax.mail.internet.MimeBodyPart part, String value, String encoding) withAttachments
(List<FileData> value) Adds message attachment files
-
Constructor Details
-
MailMsg
-
-
Method Details
-
getParamMailEncoding
-
setAttachContentTypeHeader
public static void setAttachContentTypeHeader(javax.mail.internet.MimeBodyPart part) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
setAttachFileName
public static void setAttachFileName(javax.mail.internet.MimeBodyPart part, String value, String encoding) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
withAttachments
Adds message attachment files- Parameters:
value
- the attachments- Returns:
-
send
public void send(String recipients, String subject, String txt) throws javax.mail.MessagingException Sends simple text message.- Parameters:
recipients
- comma separated addresses.subject
- subject.txt
- body text.- Throws:
javax.mail.MessagingException
-