Added mailing of log