Package tigase.extras.mailer
Class Mailer
java.lang.Object
tigase.extras.mailer.Mailer
- All Implemented Interfaces:
tigase.kernel.beans.Initializable
@Bean(name="mailer",
active=true,
exportable=true)
public class Mailer
extends Object
implements tigase.kernel.beans.Initializable
Created by bmalkow on 21.04.2017.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidsendMail(String from, String toAddresses, String messageSubject, String messageText, Mailer.TYPE type) voidsetFromAddress(String fromAddress)
-
Field Details
-
log
-
-
Constructor Details
-
Mailer
public Mailer()
-
-
Method Details
-
setFromAddress
-
initialize
public void initialize()- Specified by:
initializein interfacetigase.kernel.beans.Initializable
-
sendMail
public void sendMail(String toAddresses, String messageSubject, String messageText) throws MailerException - Throws:
MailerException
-
sendMail
-
sendMail
public void sendMail(String from, String toAddresses, String messageSubject, String messageText, Mailer.TYPE type) throws MailerException - Throws:
MailerException
-