Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send smtp mail with smtp authentication

Status
Not open for further replies.

spons

Programmer
Mar 17, 2004
18
0
0
US
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 ?
 
You can try this:

Step1 (code):

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).

Hope this help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top