debug logs for sending email