send mail with the background task log file