added SMTP auth to sending emails