Changed way to connect on SMTP server