public interface IMailUtil
Modifier and Type | Method and Description |
---|---|
Message |
getBlankMessage(Session customSession)
returns a new message to be filled in with the custom Session
|
String |
getEmailProperty(String name) |
Session |
getNewSession(String smtpHostServer)
If you need create a new session, use this
|
Session |
getSession(String smtpHostServer)
If you need the session, here you go
|
void |
sendMail(String to,
String cc,
String from,
String subject,
String text)
sends email with the text defaulting as text/html and the default session
|
void |
sendMail(String to,
String cc,
String from,
String subject,
String text,
String contentType)
sends email with the text as the given contentType and the default session
|
void |
sendMail(String to,
String cc,
String from,
String subject,
String text,
String contentType,
Session customSession)
sends email with the content type and custom session
|
Session getNewSession(String smtpHostServer)
void sendMail(String to, String cc, String from, String subject, String text) throws MessagingException
MessagingException
void sendMail(String to, String cc, String from, String subject, String text, String contentType) throws MessagingException
MessagingException
void sendMail(String to, String cc, String from, String subject, String text, String contentType, Session customSession) throws MessagingException
MessagingException
Message getBlankMessage(Session customSession) throws MessagingException
MessagingException