|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.mail.MailUtil
public final class MailUtil
This class provides mail utils.
| Method Summary | |
|---|---|
static java.util.Map |
getAttachmentList(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 |
sendMessage(java.lang.String strHost,
java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Send a message. |
static void |
sendMessageHtml(java.lang.String strHost,
java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
Send a HTML formated message. |
static void |
sendMessageHtml(java.lang.String strHost,
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. |
static void |
sendMessageHtmlWithAttachment(java.lang.String strHost,
java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.lang.String strFileName)
Send a HTML formated message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void sendMessage(java.lang.String strHost,
java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
throws javax.mail.MessagingException
strHost - The SMTP name or IP address.strRecipient - The recipient email.strSenderName - The sender name.strSenderEmail - The sender email address.strSubject - The message subject.strMessage - The message.
javax.mail.MessagingException - The messaging exception
public static void sendMessageHtml(java.lang.String strHost,
java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage)
throws javax.mail.MessagingException
strHost - The SMTP name or IP address.strRecipient - The recipient email.strSenderName - The sender name.strSenderEmail - The sender email address.strSubject - The message subject.strMessage - The message.
javax.mail.MessagingException - The messaging exception
public static void sendMessageHtmlWithAttachment(java.lang.String strHost,
java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.lang.String strFileName)
throws javax.mail.MessagingException
strHost - The SMTP name or IP address.strRecipient - The recipient email.strSenderName - The sender name.strSenderEmail - The sender email address.strSubject - The message subject.strMessage - The message.strFileName - The name of the attachment.
javax.mail.MessagingException - The messaging exception
public static void sendMessageHtml(java.lang.String strHost,
java.lang.String strRecipient,
java.lang.String strSenderName,
java.lang.String strSenderEmail,
java.lang.String strSubject,
java.lang.String strMessage,
java.util.Map mapAttachments)
throws javax.mail.MessagingException
strHost - The SMTP name or IP address.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.
javax.mail.MessagingException - The messaging exception
public static java.util.Map getAttachmentList(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 | |||||||||