Liferay 6.2-ce-ga5

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[] 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, 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, List<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, String subject, String body, boolean htmlFormat, javax.mail.internet.InternetAddress[] replyTo, String messageId, String inReplyTo, List<FileAttachment> fileAttachments, 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(Account account)

getSession

public static javax.mail.Session getSession(boolean cache)

send

public static void send(byte[] bytes)
                 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,
                        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,
                        List<FileAttachment> fileAttachments)
                 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,
                        List<FileAttachment> fileAttachments,
                        SMTPAccount smtpAccount)
                 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,
                        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,
                        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(MailMessage mailMessage)
                 throws MailEngineException
Throws:
MailEngineException

send

public static void send(String from,
                        String to,
                        String subject,
                        String body)
                 throws MailEngineException
Throws:
MailEngineException

Liferay 6.2-ce-ga5