Work for smtp connection