I am trying to send email from C#.net and getting following error:-

```
Unable to read data from the transport connection: net_io_connectionclosed.

```

Same code is working fine with `port: 25`, but throwing error when update to `port: 465`

I have tested the SMTP settings with port 465 in Outlook and it works fine. Only have issue while sending through C#.

I am using following email settings.

```
  <mailSettings>
      <smtp from="info@domain.com" deliveryMethod="Network"  >
        <network host="mail.domain.com" password="xxx" port="465" userName="info@domain.com" enableSsl="true"  />
      </smtp>
    </mailSettings>

```