Class JavaxMailer
java.lang.Object
ch.autumo.beetroot.mailing.AbstractMailer
ch.autumo.beetroot.mailing.JavaxMailer
- All Implemented Interfaces:
Mailer
Javax Mailer.
-
Field Summary
Fields inherited from class AbstractMailer
auth, DEFAULT_SMTP_PORT, from, host, mailformats, password, port, portStr, pwEncoded, sslEnable, tlsEnable, userModifier and TypeFieldDescriptionprotected booleanMail authentication?static final intdefault SMTP port.protected StringMail from (email).protected StringSMTP Host.protected String[]Mail formats.protected StringMail user password.protected intSMTP Port.protected StringSMTP Port string.protected booleanPasswords encoded in mail configuration section ('cfg/beetroot.cfg')?protected booleanSSL enabled?protected booleanTLS enabled?protected StringMail user (email).Fields inherited from interface Mailer
EMAIL_PATTERN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractMailer
initialize, loadTemplate, loadTemplateWithVariables, replaceAllLanguageVariables, replaceAllVariablesModifier and TypeMethodDescriptionprotected PropertiesInitialize mail configuration; some are store in the returned properties and some attributes are initialized.protected StringloadTemplate(String templateName, BeetRootHTTPSession session, String extension) Load mail template.protected StringloadTemplateWithVariables(String templateName, BeetRootHTTPSession session, Map<String, String> variables, String format) Load language translated templates with variables replaced.protected StringreplaceAllLanguageVariables(String template, BeetRootHTTPSession session, String extension) Replace language variables in loaded mail template.protected StringReplace general variables in loaded mail template.
-
Constructor Details
-
JavaxMailer
public JavaxMailer()Default constructor.
-
-
Method Details
-
mail
public void mail(String[] to, String subject, Map<String, String> variables, String templateName, BeetRootHTTPSession session) throws ExceptionDescription copied from class:AbstractMailer- Specified by:
mailin interfaceMailer- Specified by:
mailin classAbstractMailer- Parameters:
to- email receiver addressessubject- subjectvariables- variables to parse in templatestemplateName- template namesession- HTTP session or null if not called within a servlet context (default language used)- Throws:
Exception- exception
-