add log for sending mail