public class AlpacaEmail
extends org.apache.commons.mail.HtmlEmail
CID_LENGTH, html, inlineEmbeds, inlineImages, textATTACHMENTS, authenticator, bccList, bounceAddress, ccList, charset, content, CONTENT_TYPE, contentType, debug, EMAIL_BODY, EMAIL_SUBJECT, emailBody, FILE_SERVER, fromAddress, headers, hostName, ISO_8859_1, KOI8_R, MAIL_DEBUG, MAIL_HOST, MAIL_PORT, MAIL_SMTP_AUTH, MAIL_SMTP_CONNECTIONTIMEOUT, MAIL_SMTP_FROM, MAIL_SMTP_PASSWORD, MAIL_SMTP_SOCKET_FACTORY_CLASS, MAIL_SMTP_SOCKET_FACTORY_FALLBACK, MAIL_SMTP_SOCKET_FACTORY_PORT, MAIL_SMTP_TIMEOUT, MAIL_SMTP_USER, MAIL_TRANSPORT_PROTOCOL, MAIL_TRANSPORT_TLS, message, popBeforeSmtp, popHost, popPassword, popUsername, RECEIVER_EMAIL, RECEIVER_NAME, replyList, SENDER_EMAIL, SENDER_NAME, sentDate, SMTP, smtpPort, socketConnectionTimeout, socketTimeout, ssl, sslSmtpPort, subject, TEXT_HTML, TEXT_PLAIN, tls, toList, US_ASCII| Constructor and Description |
|---|
AlpacaEmail()
Creates a new AlpacaEmail
|
| Modifier and Type | Method and Description |
|---|---|
static void |
emailUserEvent(User user,
EmailEvent event,
String template)
Sends an Email Event that is associated with the given User.
|
static List<ToAddress> |
getToAddressList()
Returns the list of
ToAddress objects as defined in the Alpaca
Configuration. |
org.apache.commons.mail.Email |
setSubject(String subject)
Creates the subject line for the email
|
void |
setToAddressesForUser(User user)
Sets the Email ToAddresses for a given user using the dynamic
configuration
|
buildMimeMessage, embed, embed, embed, embed, embed, embed, setHtmlMsg, setMsg, setTextMsgaddPart, addPart, addPart, attach, attach, attach, attach, attach, attach, createBodyPart, createMimeMultipart, getContainer, getPrimaryBodyPart, getSubType, init, isBoolHasAttachments, isInitialized, setBoolHasAttachments, setInitialized, setSubTypeaddBcc, addBcc, addBcc, addBcc, addCc, addCc, addCc, addCc, addHeader, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, addTo, createMimeMessage, getBccAddresses, getBounceAddress, getCcAddresses, getFromAddress, getHostName, getMailSession, getMimeMessage, getReplyToAddresses, getSentDate, getSmtpPort, getSocketConnectionTimeout, getSocketTimeout, getSslSmtpPort, getSubject, getToAddresses, isSendPartial, isSSL, isSSLCheckServerIdentity, isSSLOnConnect, isStartTLSEnabled, isStartTLSRequired, isTLS, send, sendMimeMessage, setAuthentication, setAuthenticator, setBcc, setBounceAddress, setCc, setCharset, setContent, setContent, setDebug, setFrom, setFrom, setFrom, setHeaders, setHostName, setMailSession, setMailSessionFromJNDI, setPopBeforeSmtp, setReplyTo, setSendPartial, setSentDate, setSmtpPort, setSocketConnectionTimeout, setSocketTimeout, setSSL, setSSLCheckServerIdentity, setSSLOnConnect, setSslSmtpPort, setStartTLSEnabled, setStartTLSRequired, setTLS, setTo, toInternetAddressArray, updateContentTypepublic AlpacaEmail()
throws org.apache.commons.mail.EmailException
org.apache.commons.mail.EmailException - Thrown if the from address fails to be setpublic static void emailUserEvent(User user, EmailEvent event, String template) throws org.apache.commons.mail.EmailException
user - The user associated with the event.event - The email event that contains the message to be sent.template - The email template to use. Can be left NULL to use the default
template.org.apache.commons.mail.EmailException - Thrown if an error occurs while sending the emailpublic static List<ToAddress> getToAddressList()
ToAddress objects as defined in the Alpaca
Configuration.public org.apache.commons.mail.Email setSubject(String subject)
setSubject in class org.apache.commons.mail.Emailpublic void setToAddressesForUser(User user) throws org.apache.commons.mail.EmailException
user - The user to set ToAddresses fororg.apache.commons.mail.EmailException - Thrown if an error occurs while setting the to address.Copyright © 2017 ECG. All rights reserved.