debug logging when sending email

This makes it a little easier to debug email improvements.