Interface MailerEngine
- All Known Implementing Classes:
DummyMailerEngine
public interface MailerEngine
Sends mails.
- Since:
- 1.7.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidCloses connection.booleanChecks if this mailer currently connected.voidOpens connection.voidSends a single mail.
-
Method Details
-
isConnected
boolean isConnected()Checks if this mailer currently connected.- Returns:
trueif this mailer is currently connected, otherwisefalse- Since:
- 1.7.0
-
openConnection
Opens connection.- Throws:
Exception- If an error occur while opening the connection- Since:
- 1.7.0
-
closeConnection
Closes connection.- Throws:
Exception- If something wrong occur while closing the connection- Since:
- 1.7.0
-
send
Sends a single mail.- Parameters:
mail- Mail to send- Throws:
Exception- If something wrong occur while sending email- Since:
- 1.7.0
-