send emails for logging