send email when log is opened