|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.mail.MailService
public final class MailService
Application Mail Service
| Method Summary | |
|---|---|
static java.lang.String |
getNoReplyEmail()
Returns a no reply email address defined in config.properties |
static IMailQueue |
getQueue()
Returns the mail queue |
static void |
sendMail(java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Send a message asynchronously. |
static void |
sendMail(java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.util.Map mapAttachments)
Send a message asynchronously. |
static void |
shutdown()
Shutdown the service |
static void |
transferQueueMails(java.lang.String strHost,
java.lang.StringBuffer sbLogs)
Send all messages store in the queue to the smtp server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void sendMail(java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
strRecipient - The recipient email.strSenderName - The sender name.strSenderEmail - The sender email address.strSubject - The message subject.strMessage - The message.
public static void sendMail(java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.util.Map mapAttachments)
strRecipient - The recipient email.strSenderName - The sender name.strSenderEmail - The sender email address.strSubject - The message subject.strMessage - The message.mapAttachments - The map containing the attachments associated with their content-location.public static void shutdown()
public static java.lang.String getNoReplyEmail()
public static IMailQueue getQueue()
public static void transferQueueMails(java.lang.String strHost,
java.lang.StringBuffer sbLogs)
strHost - The SMTP name or IP address.sbLogs - the string buffer use for loging all send Message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||