|
||||||||||
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 java.util.List<UrlAttachment> |
getUrlAttachmentList(java.lang.String strHtml,
java.lang.String strBaseUrl,
boolean useAbsoluteUrl)
Extract a collection of elements to be attached to a mail from an HTML string. |
static void |
sendMail(java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Deprecated. |
static void |
sendMailHtml(java.lang.String strRecipientsTo,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Send a HTML message asynchronously. |
static void |
sendMailHtml(java.lang.String strRecipientsTo,
java.lang.String strRecipientsCc,
java.lang.String strRecipientsBcc,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Send a HTML message asynchronously. |
static void |
sendMailMultipartHtml(java.lang.String strRecipientsTo,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.util.List<UrlAttachment> urlsAttachement)
Send a HTML message asynchronously with the attachements associated to the message . |
static void |
sendMailMultipartHtml(java.lang.String strRecipientsTo,
java.lang.String strRecipientsCc,
java.lang.String strRecipientsBcc,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.util.List<UrlAttachment> urlsAttachement,
java.util.List<FileAttachment> filesAttachement)
Send a HTML message asynchronously with the attachements associated to the message and attached files . |
static void |
sendMailMultipartText(java.lang.String strRecipientsTo,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.util.List<FileAttachment> filesAttachement)
Send a text message asynchronously with attached files. |
static void |
sendMailMultipartText(java.lang.String strRecipientsTo,
java.lang.String strRecipientsCc,
java.lang.String strRecipientsBcc,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.util.List<FileAttachment> filesAttachement)
Send a text message asynchronously with attached files. |
static void |
sendMailText(java.lang.String strRecipientsTo,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Send a text message asynchronously. |
static void |
sendMailText(java.lang.String strRecipientsTo,
java.lang.String strRecipientsCc,
java.lang.String strRecipientsBcc,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Send a text message asynchronously. |
static void |
shutdown()
Shutdown the service |
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 sendMailHtml(java.lang.String strRecipientsTo, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator define in config.propertiesstrSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.public static void sendMailHtml(java.lang.String strRecipientsTo, java.lang.String strRecipientsCc, java.lang.String strRecipientsBcc, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator defined in config.propertiesstrRecipientsCc
- The recipients list of the carbon copies .strRecipientsBcc
- The recipients list of the blind carbon copies .strSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.public static void sendMailMultipartHtml(java.lang.String strRecipientsTo, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage, java.util.List<UrlAttachment> urlsAttachement)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator defined in config.propertiesstrSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.urlsAttachement
- The List of UrlAttachement Object, containing the URL of attachments associated with their content-location.public static void sendMailMultipartHtml(java.lang.String strRecipientsTo, java.lang.String strRecipientsCc, java.lang.String strRecipientsBcc, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage, java.util.List<UrlAttachment> urlsAttachement, java.util.List<FileAttachment> filesAttachement)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator defined in config.propertiesstrRecipientsCc
- The recipients list of the carbon copies .strRecipientsBcc
- The recipients list of the blind carbon copies .strSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.urlsAttachement
- The List of UrlAttachement Object, containing the URL of attachments associated with their content-locationfilesAttachement
- The list of attached files.public static void sendMailText(java.lang.String strRecipientsTo, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator defined in config.propertiesstrSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.public static void sendMailText(java.lang.String strRecipientsTo, java.lang.String strRecipientsCc, java.lang.String strRecipientsBcc, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator defined in config.propertiesstrRecipientsCc
- The recipients list of the carbon copies .strRecipientsBcc
- The recipients list of the blind carbon copies .strSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.public static void sendMailMultipartText(java.lang.String strRecipientsTo, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage, java.util.List<FileAttachment> filesAttachement)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator defined in config.propertiesstrSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.filesAttachement
- The list of attached files.public static void sendMailMultipartText(java.lang.String strRecipientsTo, java.lang.String strRecipientsCc, java.lang.String strRecipientsBcc, java.lang.String strSenderName, java.lang.String strSenderEmail, java.lang.String strSubject, java.lang.String strMessage, java.util.List<FileAttachment> filesAttachement)
strRecipientsTo
- The list of the main recipients email.Every recipient
must be separated by the mail separator defined in config.propertiesstrRecipientsCc
- The recipients list of the carbon copies .strRecipientsBcc
- The recipients list of the blind carbon copies .strSenderName
- The sender name.strSenderEmail
- The sender email address.strSubject
- The message subject.strMessage
- The message.filesAttachement
- The list of attached files.public static void shutdown()
public static java.lang.String getNoReplyEmail()
public static IMailQueue getQueue()
public static java.util.List<UrlAttachment> getUrlAttachmentList(java.lang.String strHtml, java.lang.String strBaseUrl, boolean useAbsoluteUrl)
strHtml
- The HTML code.strBaseUrl
- The base url, can be null in order to extract all urls.useAbsoluteUrl
- Determine if we use absolute or relative url for attachement content-location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |