Email pools are called from modules to deliver email messages. The mail pool interface is named after the calling module and stored in a file following the same rule. Using de BS Dossiers module as example:
/WEB-INF/elephant/conf/elephant_dossier.xml
IMailMessagePool_Dossier
The xml element for MailMessagePool
s is a
Attribute |
Description |
mailhost |
The mail server domain. |
user |
User account. |
password |
User password, as is. See cryptpass for a more secured method to store passwords. |
cryptpass |
Password encrypted. Use Tools -> Password generator to generate the encrypted string. |
port |
Port to connect to. |
ssl |
Whether use SSL protocol on connect. Server defined. |
tls |
Whether to encrypt content on connect. Server defined. |
from |
Email FROM part. Can take two valid forms:
|
<impl interface="IMailMessagePool_Dossier" java-class="org.turro.mail.impl.MailMessagePool"> <attrib name="mailhost" value="smtp.gmail.com"/> <attrib name="user" value="user@gmail.com"/> <attrib name="cryptpass" value="xxxxxxx"/> <attrib name="port" value="465"/> <attrib name="ssl" value="true"/> <attrib name="tls" value="true"/> <attrib name="from" value="user@gmail.com|Site Comunications"/> </impl>