|
Version 4.8.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objecthirondelle.web4j.webmaster.EmailerImpl
public class EmailerImpl
Default implementation of Emailer.
Uses these init-param settings in web.xml :
Example web.xml settings, using a Gmail account:
<init-param>
<param-name>Webmaster</param-name>
<param-value>myaccount@gmail.com</param-value>
</init-param>
<init-param>
<param-name>MailServerConfig</param-name>
<param-value>
mail.smtp.host=smtp.gmail.com
mail.smtp.auth=true
mail.smtp.port=465
mail.smtp.socketFactory.port=465
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
</param-value>
</init-param>
<init-param>
<param-name>MailServerCredentials</param-name>
<param-value>myaccount@gmail.com|mypassword</param-value>
</init-param>
| Constructor Summary | |
|---|---|
EmailerImpl()
|
|
| Method Summary | |
|---|---|
static void |
init(ServletConfig aConfig)
Called by the framework upon startup, to extract configuration info from web.xml. |
void |
sendFromWebmaster(List<String> aToAddresses,
String aSubject,
String aBody)
Send an email from the webmaster to a list of receivers. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailerImpl()
| Method Detail |
|---|
public static void init(ServletConfig aConfig)
public void sendFromWebmaster(List<String> aToAddresses,
String aSubject,
String aBody)
throws AppException
Emailer
sendFromWebmaster in interface EmaileraToAddresses - contains email addresses of the receivers, as a List of Strings that satisfy
WebUtil.isValidEmailAddress(String)aSubject - satisfies Util.textHasContent(java.lang.String)aBody - satisfies Util.textHasContent(java.lang.String)
AppException
|
Version 4.8.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||