Class ApacheCommonsEmailMailerEngine
java.lang.Object
dev.voidframework.sendmail.engine.ApacheCommonsEmailMailerEngine
- All Implemented Interfaces:
MailerEngine
Implementation of sendmail based on Apache Commons Email library.
- Since:
- 1.7.0
-
Constructor Summary
ConstructorsConstructorDescriptionApacheCommonsEmailMailerEngine(com.typesafe.config.Config configuration) Build a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidvoid
-
Constructor Details
-
ApacheCommonsEmailMailerEngine
@Inject public ApacheCommonsEmailMailerEngine(com.typesafe.config.Config configuration) throws javax.mail.NoSuchProviderException Build a new instance.- Parameters:
configuration- The application configuration- Throws:
javax.mail.NoSuchProviderException- Since:
- 1.7.0
-
-
Method Details
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceMailerEngine
-
openConnection
- Specified by:
openConnectionin interfaceMailerEngine- Throws:
Exception
-
closeConnection
- Specified by:
closeConnectionin interfaceMailerEngine- Throws:
Exception
-
send
- Specified by:
sendin interfaceMailerEngine- Throws:
Exception
-