Hi Friends, In this post we will see how we can send mails in ASP.NET MVC C# using Office365 email address and smtp client. We will create a MVC Contact us page with all the elements of a contact us form. Create a Model class in your MVC Project with name Mail.cs and edit it […]
Tag: smtp
GoDaddy Plesk Panel SMTP SocketException Solved
Okay. Yesterday I was stuck in SocketException on Plesk panel using Godaddy.com service. Hi friends, this is rather unusual post title for me. But I have to make sure it appears on Google search index because I was stuck with this issue yesterday and wasted about couple of hours just to solve this. I tested […]
SocketException GoDaddy – Solved Issue Plesk Sending Mails
Okay. Yesterday I was stuck in SocketException on Plesk panel using Godaddy.com service. The solution was rather easy. It is detailed on here. To solve this issue: In your code use the below SMTP configuration: code: String message = “Name:\r\n”+Name+”Message:”+Message+”\r\n”; MailMessage mail = new MailMessage(); mail.From = new MailAddress(“from@email.com”); mail.To.Add(new MailAddress(“to@email.com”)); mail.Subject = “Enquiry for […]