Writes to proper log on mail fail. Closes #1357