|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.email.EmailUtils
Send Email (SMTP) Plugin Support Utilities. This class is used to put email into the plugin context for the email plugin to get at
Field Summary | |
static java.lang.String |
BLOJSOM_OUTBOUNDMAIL
Variable name for the message arraylist in the context on the plugin chain |
Constructor Summary | |
EmailUtils()
|
Method Summary | |
static javax.mail.internet.InternetAddress |
constructRecipientAddress(java.lang.String recipient,
java.lang.String defaultname,
java.lang.String defaultemail)
Helper method to create the recipient email address for a giving email message. |
static javax.mail.internet.InternetAddress |
constructSenderAddress(java.lang.String sender,
java.lang.String defaultname,
java.lang.String defaultemail)
Helper method to create the sender email address for a giving email message. |
static void |
notifyBlogAuthor(java.lang.String subject,
java.lang.String message,
java.util.Map context,
java.lang.String recipient)
Send notification email to the Blog Author. |
static void |
sendMailMessage(javax.mail.Session mailsession,
EmailMessage emailmessage,
javax.mail.internet.InternetAddress defaultaddress)
Send an Email Message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BLOJSOM_OUTBOUNDMAIL
Constructor Detail |
public EmailUtils()
Method Detail |
public static void notifyBlogAuthor(java.lang.String subject, java.lang.String message, java.util.Map context, java.lang.String recipient)
subject
- Subject of the message being sentmessage
- The message textcontext
- The context Map for putting the messagesrecipient
- Recipient e-mail (if available)public static javax.mail.internet.InternetAddress constructRecipientAddress(java.lang.String recipient, java.lang.String defaultname, java.lang.String defaultemail) throws java.io.UnsupportedEncodingException, javax.mail.internet.AddressException
recipient
- Email address of message recipientdefaultname
- Default recipient namedefaultemail
- Default recipient email
java.io.UnsupportedEncodingException
javax.mail.internet.AddressException
public static javax.mail.internet.InternetAddress constructSenderAddress(java.lang.String sender, java.lang.String defaultname, java.lang.String defaultemail) throws java.io.UnsupportedEncodingException, javax.mail.internet.AddressException
sender
- Email address of message senderdefaultname
- Default sender namedefaultemail
- Default email name
java.io.UnsupportedEncodingException
javax.mail.internet.AddressException
public static void sendMailMessage(javax.mail.Session mailsession, EmailMessage emailmessage, javax.mail.internet.InternetAddress defaultaddress)
mailsession
- Session Inastanceemailmessage
- EmailMessage Instancedefaultaddress
- InternetAddress Instance of Recipient/Sender
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |