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


Top 5 Contributors of the Month
david stephan

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

System.Net.WebException

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


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

Hi,

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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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