Hi! I'm trying to log the email sending result using Email::Sender, both OK and failure. In the doc, it says that when the message was sent, the result will be an Email::Sender::Success object that it is only a "true" value, but I found that it has a "message" property and I use it to write in the log.
The problems start when there is an error. The doc says that it will throw an object of the class Email::Sender::Failure with a "message" attribute describing the error, but it also dies!!! To avoid the unexpected finish, the module includes a method called "try_to_send", but on error it only returns "false" and no messages. Alternatively I could use Try::Tiny by myself, but I couldn't retrieve a "message" attribute in this case. Also, I couldn't find an example on how to catch the failure object correctly...
Any hint? Thanks in advance!