Class JavaxMailer
java.lang.Object
ch.autumo.commons.mailing.AbstractMailer
ch.autumo.commons.mailing.JavaxMailer
- All Implemented Interfaces:
Mailer
Javax Mailer.
-
Field Summary
Fields inherited from class AbstractMailer
auth, DEFAULT_SMTP_PORT, from, host, password, port, pwEncoded, sslEnable, tlsEnable, userModifier and TypeFieldDescriptionprotected booleanMail authentication?static final intdefault SMTP port.protected StringMail from (email).protected StringSMTP Host.protected StringMail user password.protected intSMTP Port.protected booleanPasswords encoded in mail configuration section ('cfg/app.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
initializeModifier and TypeMethodDescriptionprotected PropertiesInitialize mail configuration; some are store in the returned properties and some attributes are initialized.
-
Constructor Details
-
JavaxMailer
public JavaxMailer()Default constructor.
-
-
Method Details
-
mail
Description copied from interface:MailerMail. HTML + TXT templates are served.- Specified by:
mailin interfaceMailer- Specified by:
mailin classAbstractMailer- Parameters:
to- email receiver addressessubject- subjecthtml- HTML contentstext- text contents- Throws:
Exception- when mailing fails- See Also:
-