Add a function for authentication in SMTP