create file if send mail is failing