Add a function for authentication in SMTP

A think this is useful and esencial function.