Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I am developing web app in OS-->windows 7...cant find the smtp server.. n have remotely to smtp.gmail but error occur --> unable to remote server. and the inner exception was A socket operation was attempted to an unreachable network. :(( Is there any other option to sent email other than using SMTP? or better to used my own domain and not using SMTP?
Posted
Updated 12-Aug-10 23:32pm
v3

Of course, rather than sending mail from your own domain, use external domain that already enables sending mails.

Check this.
How to Send Mails from your GMAIL Account through VB.NET or C#. Windows Programming, with a Bit of Customization[^]

:thumbsup:
 
Share this answer
 
Comments
Dalek Dave 13-Aug-10 5:04am    
Good Link, Good Answer, Good Article!
I think you mix up two different terms here. SMTP is a protocol and not a domain. Also, the smtp at the start of the address is simply telling the server where to look just like with www at the beginning. smtp.mailserver.com is simply meaning you want to contact mailserver in the .com domain and want to communicate smtp with it.

There is probably another reason that you can't contact the server. Probably you simply need to open port 25 or give your application access to communicate to the outside world in the firewall of windows 7 and your done.

Good luck!
 
Share this answer
 
Yup already accpeted both of the answer.. using my own domain rather than gmail.com and ive already open the port 25 and its work thanks you. :laugh:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900