Liferay 6.0.5

com.liferay.util.mail
Class MailEngine

java.lang.Object
  extended by com.liferay.util.mail.MailEngine

public class MailEngine
extends Object


Constructor Summary
MailEngine()
           
 
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
 

Constructor Detail

MailEngine

public MailEngine()
Method Detail

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

Liferay 6.0.5