revamped mail error logging, fixing issue of not seeing failed email address in console logs