Package eu.webtoolkit.jwt.utils
Class MailUtils
java.lang.Object
eu.webtoolkit.jwt.utils.MailUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHtmlBody(javax.mail.Message message, WString htmlBody) static Propertiesstatic booleanisEmpty(javax.mail.Address[] from) static voidsendMail(javax.mail.Message m) static voidstatic voidsetSubject(javax.mail.Message message, WString subject)
-
Constructor Details
-
MailUtils
public MailUtils()
-
-
Method Details
-
sendMail
public static void sendMail(javax.mail.Message m) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
isEmpty
public static boolean isEmpty(javax.mail.Address[] from) -
setSubject
public static void setSubject(javax.mail.Message message, WString subject) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
addHtmlBody
public static void addHtmlBody(javax.mail.Message message, WString htmlBody) throws IOException, javax.mail.MessagingException - Throws:
IOExceptionjavax.mail.MessagingException
-
getDefaultProperties
-
setBody
public static void setBody(javax.mail.Message message, WString plainBody) throws javax.mail.MessagingException, IOException - Throws:
javax.mail.MessagingExceptionIOException
-