Passing to error handler the message sent from SMTP server when an error occurred

This is useful to allow take some action regarding the message and the code that was returned.