0 votes

Here's the error I'm receiving, when communicating to your server

The handshake failed due to an unexpected packet format. - at
Limilabs.Client.ClientBase.Connect(String host, Int32 port, Boolean useSSL)
at EmailAuthLibrary.clsEmailResponder.ProcessMessage(IMail email) in
clsEmailResponder.vb:line 1419

That's Happening in this code

  orecord = "healthyfamiliesamerica.com"

  Using smtp As New Limilabs.Client.SMTP.Smtp
        AddHandler smtp.ServerCertificateValidate, AddressOf ValidateCertificate
        With smtp
              smtp.Connect(orecord, 587, True)
        End With

  End Using
by

1 Answer

0 votes
 
Best answer

587 is not ans SSL port for SMTP. SMTP uses port 465 for SSL.

Use the following code:

smtp.Connect(orecord, 465 , True)

or

smtp.ConnectSSL(orecord)
by (301k points)
...