|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
The transport failed to connect to the server
Hello
I have been using this code and it is now not working.i get the above error Dim objMM As New MailMessage objMM.To = "me@mymail.com" objMM.From = "anotherme@mymail.com" objMM.BodyFormat = MailFormat.Text objMM.Priority = MailPriority.Normal objMM.Subject = "Hello" objMM.Body = "Dear Me" & vbCrLf & vbCrLf & "Please NOTE: that your mail is not sending." SmtpMail.SmtpServer = "ip address" SmtpMail.Send(objMM) am i doing something wrong?(this is in .NET 1) your help will be greatly appreciated. ![]() Last edited by wagae : May 12th, 2008 at 05:39 AM. Reason: more information |
|
#2
|
||||
|
||||
|
Quote:
SmtpMail.SmtpServer = "ip address" is that literally, or you entered some IP address? |
|
#3
|
|||
|
|||
|
Hello, I have entered an ip address
|
|
#4
|
||||
|
||||
|
The code could not connect to a mail server at the ip address you specified.
If you're on a hosted server, maybe your host moved the server. You should try something like "mail.yourdomain.com" or "smtp.yourdomain.com" which uses the DNS record rather than a specific IP. The DNS should automatically update to the new IP. Could be the mail server is down. Could be that authentication has been turned on for the mail server, so you have to use valid login details to be able to use the SMTP server. If you're on a hosted server, you should contact your host and ask them if they've changed anything. If not, there must be something wrong with or changed on the mail server you're trying to use.
__________________
Policy Check I'd rather have a full bottle in front of me, than a full frontal lobotomy...
|
|
#5
|
||||
|
||||
|
Yes, I wasn't sure about that - I thought that IP address is sufficient, although I've never tried it.
__________________
Discuss ASP.NET on Mylot and earn money! You can get paid by discussing Classic ASP also! |
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > The transport failed to connect to the server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|