Package com.onec.mail.dispatch
Class FileMailDispatcher
java.lang.Object
com.onec.mail.dispatch.FileMailDispatcher
- All Implemented Interfaces:
MailDispatcher
Dev dispatcher (
provider=file). Writes each message as an .eml-style file to disk
instead of sending it, so templates can be inspected in a browser or mail client during development.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(MailMessage message) Synchronously deliver a message to the provider.name()Stable provider id, e.g.
-
Constructor Details
-
FileMailDispatcher
-
-
Method Details
-
name
Description copied from interface:MailDispatcherStable provider id, e.g. "smtp", "sendgrid", "ses".- Specified by:
namein interfaceMailDispatcher
-
dispatch
Description copied from interface:MailDispatcherSynchronously deliver a message to the provider. ThrowsMailDeliveryExceptionon failure.- Specified by:
dispatchin interfaceMailDispatcher
-