module persists its own mail log.

if an exception is thrown while sending mail, the log is updated
added error property in entity