Logs to mail, check for create folder/file