+1 vote

I'm trying to use the library into my webapplication hosted by GoDaddy. The GoDaddy smtp do not need user and password. No SSL Either but I'm not able to connect to the smtp and send a simple email.

The people from GoDaddy say to me that the smtp server is working properly.

Can anybody help me with this matter?

Regards

Rogerio Picilli

by

1 Answer

0 votes

Without SSL, GoDaddy uses port 25 for email submissions (which is incorrect, as port 587 should be used), that's why you need to specify port explicitly.

Your code should look like this:

using(Smtp smtp = new Stmp())
{
    smtp.Connect("server address goes here", 25);

    // ....

    smtp.Close();
}
by (301k points)
Hi, thanks for you reply.

I'm using the port 25 as you can see below but its is not working.

May be I'm missing something. Could you please try to help me.

        Dim email As IMail = builder.Create
        Using smtp As New Limilabs.Client.SMTP.Smtp
            Try
                smtp.Connect("relay-hosting.secureserver.net", 25)
                smtp.SendMessage(email)
                smtp.Close
            Catch ex As Exception
            End Try
        End Using

Best regards

Rogerio Picilli
What is the exact error you are getting? Dos your account have enough privileges to connect to the SMTP server?
...