Added log when sending mail fails.