public class MailEngine
extends java.lang.Object
com.liferay.util.mail.MailEngine
Constructor and Description |
---|
MailEngine() |
Modifier and Type | Method and Description |
---|---|
static javax.mail.Session |
getSession() |
static javax.mail.Session |
getSession(com.liferay.mail.kernel.model.Account account) |
static javax.mail.Session |
getSession(boolean cache) |
static void |
send(byte[] bytes) |
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,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
java.lang.String messageId,
java.lang.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,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
java.lang.String messageId,
java.lang.String inReplyTo,
java.util.List<com.liferay.mail.kernel.model.FileAttachment> fileAttachments) |
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,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
java.lang.String messageId,
java.lang.String inReplyTo,
java.util.List<com.liferay.mail.kernel.model.FileAttachment> fileAttachments,
com.liferay.mail.kernel.model.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,
javax.mail.internet.InternetAddress[] bulkAddresses,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
java.lang.String messageId,
java.lang.String inReplyTo,
java.util.List<com.liferay.mail.kernel.model.FileAttachment> fileAttachments,
com.liferay.mail.kernel.model.SMTPAccount smtpAccount,
javax.mail.internet.InternetHeaders internetHeaders) |
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
java.lang.String subject,
java.lang.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,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat,
javax.mail.internet.InternetAddress[] replyTo,
java.lang.String messageId,
java.lang.String inReplyTo) |
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
java.lang.String subject,
java.lang.String body) |
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
javax.mail.internet.InternetAddress[] cc,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat) |
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
java.lang.String subject,
java.lang.String body) |
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress[] to,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat) |
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
java.lang.String subject,
java.lang.String body) |
static void |
send(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
java.lang.String subject,
java.lang.String body,
boolean htmlFormat) |
static void |
send(com.liferay.mail.kernel.model.MailMessage mailMessage) |
static void |
send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body) |
public static javax.mail.Session getSession()
public static javax.mail.Session getSession(com.liferay.mail.kernel.model.Account account)
public static javax.mail.Session getSession(boolean cache)
public static void send(byte[] bytes) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress to, java.lang.String subject, java.lang.String body) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress to, java.lang.String subject, java.lang.String body, boolean htmlFormat) throws MailEngineException
MailEngineException
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, java.lang.String subject, java.lang.String body, boolean htmlFormat, javax.mail.internet.InternetAddress[] replyTo, java.lang.String messageId, java.lang.String inReplyTo) throws MailEngineException
MailEngineException
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, java.lang.String subject, java.lang.String body, boolean htmlFormat, javax.mail.internet.InternetAddress[] replyTo, java.lang.String messageId, java.lang.String inReplyTo, java.util.List<com.liferay.mail.kernel.model.FileAttachment> fileAttachments) throws MailEngineException
MailEngineException
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, java.lang.String subject, java.lang.String body, boolean htmlFormat, javax.mail.internet.InternetAddress[] replyTo, java.lang.String messageId, java.lang.String inReplyTo, java.util.List<com.liferay.mail.kernel.model.FileAttachment> fileAttachments, com.liferay.mail.kernel.model.SMTPAccount smtpAccount) throws MailEngineException
MailEngineException
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, java.lang.String subject, java.lang.String body, boolean htmlFormat, javax.mail.internet.InternetAddress[] replyTo, java.lang.String messageId, java.lang.String inReplyTo, java.util.List<com.liferay.mail.kernel.model.FileAttachment> fileAttachments, com.liferay.mail.kernel.model.SMTPAccount smtpAccount, javax.mail.internet.InternetHeaders internetHeaders) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress[] to, javax.mail.internet.InternetAddress[] cc, javax.mail.internet.InternetAddress[] bcc, java.lang.String subject, java.lang.String body) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress[] to, javax.mail.internet.InternetAddress[] cc, javax.mail.internet.InternetAddress[] bcc, java.lang.String subject, java.lang.String body, boolean htmlFormat, javax.mail.internet.InternetAddress[] replyTo, java.lang.String messageId, java.lang.String inReplyTo) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress[] to, javax.mail.internet.InternetAddress[] cc, java.lang.String subject, java.lang.String body) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress[] to, javax.mail.internet.InternetAddress[] cc, java.lang.String subject, java.lang.String body, boolean htmlFormat) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress[] to, java.lang.String subject, java.lang.String body) throws MailEngineException
MailEngineException
public static void send(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress[] to, java.lang.String subject, java.lang.String body, boolean htmlFormat) throws MailEngineException
MailEngineException
public static void send(com.liferay.mail.kernel.model.MailMessage mailMessage) throws MailEngineException
MailEngineException
public static void send(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String body) throws MailEngineException
MailEngineException