in the System.Web.Mail namespace I cant find where I can send mail when the smtp server uses authentication. I only get an error saying cannot access cdo object. Anyone have a solution for this ?
SmtpMail.SmtpServer = "mail.company.com";
SmtpMail.Send(from, to, subject, body);
Step2(config SMTP):
IIS => Default SMTP Server Mail go to Properties (right click) and on tab "Access" you'll find "Authentication" (you have to test the possibles configurations and to find the right one).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.