debug logging when sending email
more idomatic log formatting
Merge pull request #266 from ultrasaurus/devel-email-logging

debug logging when sending email