sending email from a console app

  • Thread starter Thread starter Philip Townsend
  • Start date Start date
P

Philip Townsend

Is there any way to send email from a console application? We have a
simple console app that runs data updates and we need to be notified
when errors occur. Email is the preferred method, though we can write to
a file.
 
Philip,

You have two options. You can use the classes in the System.Web.Mail
namespace to send mail. You can also access the CDO object library through
COM interop to send mail.

Hope this helps.
 
Back
Top