Add logging to SMTP