The email service should be able to send plain text and
html mails with or without attachments. Currently this
service only supports synchronous mail sending.
- Exceptions
- The Service would throw a MailFailureException, when unable send the message.
- Logging
- The service should log the messages that were not send.
- Extensibility
-
Good. The interface is generic enough to plug open source implementations like
jakarta if required in future.
- Messaging
-
We currently hard-code exception messages in the calls to exceptions. Is
there a way to make them localizable, perhaps through extensible
exceptions.
|