Package com.soffid.iam.utils
Class MailUtils
- java.lang.Object
-
- com.soffid.iam.utils.MailUtils
-
public class MailUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description MailUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.mail.Session
getSession(String mailHost)
static void
sendHtmlMail(String smtpServer, String to, String from, String subject, String body)
static void
sendHtmlMail(String smtpServer, Set<javax.mail.internet.InternetAddress> to, String from, String subject, String body)
static void
sendMail(String smtpServer, String to, String from, String subject, String body)
static void
sendMail(String smtpServer, Set<javax.mail.internet.InternetAddress> to, String from, String subject, String body)
-
-
-
Method Detail
-
sendMail
public static void sendMail(String smtpServer, String to, String from, String subject, String body) throws javax.mail.MessagingException, NamingException
- Throws:
javax.mail.MessagingException
NamingException
-
getSession
public static javax.mail.Session getSession(String mailHost) throws NamingException
- Throws:
NamingException
-
sendHtmlMail
public static void sendHtmlMail(String smtpServer, String to, String from, String subject, String body) throws javax.mail.MessagingException, NamingException
- Throws:
javax.mail.MessagingException
NamingException
-
sendHtmlMail
public static void sendHtmlMail(String smtpServer, Set<javax.mail.internet.InternetAddress> to, String from, String subject, String body) throws NamingException, es.caib.seycon.ng.exception.InternalErrorException
- Throws:
NamingException
es.caib.seycon.ng.exception.InternalErrorException
-
sendMail
public static void sendMail(String smtpServer, Set<javax.mail.internet.InternetAddress> to, String from, String subject, String body) throws javax.mail.MessagingException, NamingException, es.caib.seycon.ng.exception.InternalErrorException
- Throws:
javax.mail.MessagingException
NamingException
es.caib.seycon.ng.exception.InternalErrorException
-
-