I know this issue has been address many times and go through most of the threads but unfortunately didn't get any. here is my code Code: //create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress("[email protected]"); mail.To.Add("[email protected]"); //set the content mail.Subject = "This is an email"; mail.Body = "This is from system.net.mail using C sharp with smtp authentication."; //send the message SmtpClient smtp = new SmtpClient("mail.msltech.co.uk"); NetworkCredential Credentials = new NetworkCredential("[email protected]", "XXXX"); smtp.Credentials = Credentials; smtp.Send(mail); and here is the error any help will be appreciable
Try increasing the trust level on your web application. The easiest way is to go through IIS 7 Manager and access the Trust Level module. http://support.Winhost.com/KB/a628/using-the-microsoft-iis-70-manager.aspx Once you are connected, go to the Trust Level module and set it to High or Full. If you see it is already set to Full, try lowering it to Medium, and save it then set it back to Full and then save it.
mail.msltech.co.uk does not seem to be resolving to our email server. It appears to be resolving to your old hosting providers email server. Are you using them for email? If not I suggest you update the name servers for msltech.co.uk and have the DNS servers point to us. That way we handle your email.
you know it new hosting and domain name we buy from your company. Both domain name and hosting we purchased from your company, if their is some email MX entries or setting issues please let me know where i goto in control panel to set these settings. thank you
We didn't register msltech.co.uk for you. We cannot register international domain name. This is somethng you registered somewhre else. I'm afraid we are only the web hosting provider for you.
The best thing to do is to contact your registrar and have them point the DNS server to us. That way mail.msltech.co.uk will point to our email servers.