.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum


Posted By: Vikramraj     Posted Date: June 29, 2010    Points:2   Category :C#
I have writen code to Send Email to any Email ID through Gmail Account in c#.net While Execute the code I Get an error as follows
"System.Net.WebException Unable to connect to remote server." so how can i solve this problem

Author: Sunil Yadav       [Moderator]      
Posted Date: June 29, 2010     Points: 5   


This kind of error generally occurs when you are unable to connect to SMTP server.Please check weather your provide correct gmail address also make sure that you enable ssl.It would e better if you can post a code here.

Author: Vikramraj             
Posted Date: July 03, 2010     Points: 5   

I Have made EnableSSl = true And Also Put "smtp.gmail.com" as Sever & Port = 587 & Also Using Credencials. And Sending Email from gmail account to gmail account. still its showing error System.Net.WebException

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend