Error while sending email...asp.net 2.0
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: denied access
you can resolve this error by setting
mailclient.UseDefaultCredentials = true; in the code you are using to send email. use this code
System.Net.Mail.SmtpClient mailclient = new System.Net.Mail.SmtpClient();
System.Net.NetworkCredential auth = new System.Net.NetworkCredential("support@abc.com", "123#");
mailclient.Host = "mail.abc.com";
mailclient.UseDefaultCredentials = true;
mailclient.Credentials = auth;
mailclient.Send(msg);
Wednesday, April 8, 2009
Subscribe to:
Post Comments (Atom)
8 comments:
thanxxx
it is not working for me.
Thanks
It's working and i have solved out the problem with the help of your blog
thanks for the help
its working and finally my problem has been sort out
thanks your code helped
still the error is server do not support secure connection
Thanks,
It's working fine!!
Post a Comment