change logic for smtp server and auth