Mail pool

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:

  • The file containing the interface /WEB-INF/elephant/conf/elephant_dossier.xml
  • The interface name IMailMessagePool_Dossier

The xml element for MailMessagePool

The xml element for MailMessagePools is a <impl interface java-class/> using org.turro.mail.impl.MailMessagePool. The attributes are:

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. Usually same as user. Can take two valid forms:

  • Email
  • Email|Name

Example of an email pool for Gmail

<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>
Printer version
English08/08/20 07:51Lluís Turró Cutiller


© turro.org, 2011-2018

lluis@turro.org
Tel. +34 609323947