.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 12th, 2008, 05:35 AM
wagae wagae is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 45 wagae User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 9 m 9 sec
Reputation Power: 3
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

Reply With Quote
  #2  
Old May 14th, 2008, 05:15 AM
imbrod's Avatar
imbrod imbrod is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 238 imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 18 h 12 m 43 sec
Reputation Power: 15
Quote:
Originally Posted by wagae
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.


SmtpMail.SmtpServer = "ip address"

is that literally, or you entered some IP address?

Reply With Quote
  #3  
Old May 14th, 2008, 05:20 AM
wagae wagae is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 45 wagae User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 9 m 9 sec
Reputation Power: 3
Hello, I have entered an ip address

Reply With Quote
  #4  
Old May 14th, 2008, 08:50 AM
richyrich's Avatar
richyrich richyrich is offline
Contributing User
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Somewhere only we know...
Posts: 4,192 richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 122622 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122622 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122622 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122622 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122622 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122622 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 1 Week 1 Day 18 h 9 sec
Reputation Power: 1209
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.
Comments on this post
wagae agrees: This helped a lot, much appreciated :-)
__________________
Policy Check

I'd rather have a full bottle in front of me, than a full frontal lobotomy...

Reply With Quote
  #5  
Old June 8th, 2008, 05:05 PM
imbrod's Avatar
imbrod imbrod is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 238 imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level)imbrod User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 18 h 12 m 43 sec
Reputation Power: 15
Yes, I wasn't sure about that - I thought that IP address is sufficient, although I've never tried it.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > The transport failed to connect to the server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway