The transport failed to connect to the server.
I got this error when my code is:
MyMail.From = "sFrom";
MyMail.To = txtto.Text.Trim();
MyMail.Subject = "Test Mail";
MyMail.Body = txtmessage.Text.Trim();
SmtpMail.SmtpServer = mydomain;
SmtpMail.Send(MyMail);
Anoop. H
Software Engineer,
CTIS, Trivandrum.
|