Cannot connect to smtp server error !
-
Hi programmers, i get the cannot connect to smtp server error when i try to send mail through mail from my vb application. i used aspsmartmail componet for this. the mails goes correctly when i use normal outlook express or my domain account through internet explorer but gives error when i send it through my code. i am giving the code snippet which sends mails. sorry i cant give full details of my mail server and email account in code snippet plz consider for this. plz help me guys.
Dim mySmartMail As aspSmartMail.SmartMail Set mySmartMail = New aspSmartMail.SmartMail mySmartMail.Server = "ip address of mail server" mySmartMail.ServerTimeOut = 35 mySmartMail.UserName = "username" mySmartMail.Password = "password" mySmartMail.SenderAddress = "test@mydomain.com" mySmartMail.Recipients.Add "nitin@mydomain.com" mySmartMail.Subject = "my mail" mySmartMail.Body = "body" mySmartMail.SendMail Set mySmartMail = Nothing
Help! Nitin... -
Hi programmers, i get the cannot connect to smtp server error when i try to send mail through mail from my vb application. i used aspsmartmail componet for this. the mails goes correctly when i use normal outlook express or my domain account through internet explorer but gives error when i send it through my code. i am giving the code snippet which sends mails. sorry i cant give full details of my mail server and email account in code snippet plz consider for this. plz help me guys.
Dim mySmartMail As aspSmartMail.SmartMail Set mySmartMail = New aspSmartMail.SmartMail mySmartMail.Server = "ip address of mail server" mySmartMail.ServerTimeOut = 35 mySmartMail.UserName = "username" mySmartMail.Password = "password" mySmartMail.SenderAddress = "test@mydomain.com" mySmartMail.Recipients.Add "nitin@mydomain.com" mySmartMail.Subject = "my mail" mySmartMail.Body = "body" mySmartMail.SendMail Set mySmartMail = Nothing
Help! Nitin...Well, you'll most likely have to get with the people that wrote that component. If you purchased it, then you have at least 1 FREE support incident, otherwise it's $159/incident. If the IP works in Outlook, the exact same server name/IP should work in this component. If it's not, there might be some setting in this component that you have to set, but have so far failed to do so. I have no idea what that would be, since I've never used this component. Another possibility is that you have the free version and it expires. If so, then you'll have to shovel out the money to get the full version.
Dave Kreskowiak Microsoft MVP - Visual Basic