Skip to content

Add exception handling #10

@diogosantana

Description

@diogosantana

There is no specific exception handling for sending e-mail. This cause a lot of undesirable behavior:

  1. No log record are created
  2. No e-mail is sended, even if only one rcpt is invalid
  3. Server returns HTTP STATUS 500 with the stackstrace string as body, making the browser to show the body as text

You could use setSendPartial to prevent behavior number 2, but it still will needed to handle exception.

It also will be nice to log which e-mails were invalid with SendFailedException.getInvalidAddresses.

Sorry not to provide a PR, but I don't work with Scala.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions