I have an ASP.NET Web Form written in C# using SQL Server 2012.
My form includes questions and once the user clicks on the submit button it executes the code in SendEmail() which should email the user that entered the form information that I want them to see. However, when I try to submit the data on my local development end I get the following error below. The data still gets added to the database but I get the following error below. I'm going to attach my SendMail() code below the error.
Error that I receive:
System.Net.Mail.SmtpException: Service not available, closing transmission channel. The server response was: Cannot connect to SMTP server 220.127.116.11 (18.104.22.168:25), NB connect error 1460 at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.SendEmail() in c:\inetpub\wwwroot\TMF\Default.aspx.cs:line 449 at _Default.btnSubmitApplication_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\TMF\Default.aspx.cs:line 569