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.SessiongetSession(String mailHost)static voidsendHtmlMail(String smtpServer, String to, String from, String subject, String body)static voidsendHtmlMail(String smtpServer, Set<javax.mail.internet.InternetAddress> to, String from, String subject, String body)static voidsendMail(String smtpServer, String to, String from, String subject, String body)static voidsendMail(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.MessagingExceptionNamingException
-
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.MessagingExceptionNamingException
-
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:
NamingExceptiones.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.MessagingExceptionNamingExceptiones.caib.seycon.ng.exception.InternalErrorException
-
-