auto mailing the log file