com.liferay.util.mail
Class MailEngine
java.lang.Object
com.liferay.util.mail.MailEngine
public class MailEngine
- extends Object
Method Summary |
static javax.mail.Session |
getSession()
|
static javax.mail.Session |
getSession(Account account)
|
static javax.mail.Session |
getSession(boolean cache)
|
static void |
send(byte[] msgByteArray)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo,
File[] attachments)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo,
File[] attachments,
SMTPAccount smtpAccount)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
String subject,
String body)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
String subject,
String body)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
String subject,
String body,
boolean htmlFormat)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
String subject,
String body)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
String subject,
String body,
boolean htmlFormat)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
String subject,
String body)
|
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
String subject,
String body,
boolean htmlFormat)
|
static void |
send(MailMessage mailMessage)
|
static void |
send(String from,
String to,
String subject,
String body)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailEngine
public MailEngine()
getSession
public static javax.mail.Session getSession()
getSession
public static javax.mail.Session getSession(boolean cache)
getSession
public static javax.mail.Session getSession(Account account)
send
public static void send(MailMessage mailMessage)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(String from,
String to,
String subject,
String body)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
String subject,
String body)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
String subject,
String body,
boolean htmlFormat)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
String subject,
String body)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
String subject,
String body,
boolean htmlFormat)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
String subject,
String body)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
String subject,
String body,
boolean htmlFormat)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
String subject,
String body)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo,
File[] attachments)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
javax.mail.internet.InternetAddress[] bulkAddresses,
String subject,
String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
String messageId,
String inReplyTo,
File[] attachments,
SMTPAccount smtpAccount)
throws MailEngineException
- Throws:
MailEngineException
send
public static void send(byte[] msgByteArray)
throws MailEngineException
- Throws:
MailEngineException