log as error if mail is not sent