Sending Email from a windows service

  • Thread starter Thread starter Roger Twomey
  • Start date Start date
R

Roger Twomey

I am trying to write a service that will send an email when certain events
occur.

It would seem that I should use the System.Web.Mail to send SMTP mail,
however when I try to import System.Web.Mail into my Service it shows as an
error in my Visual Studio.
(Namespace or type 'Mail' for the Imports System.Web.Mail cannot be found.)

I can import this into my web apps. SMTP is running on my development
machine.

Am I trying to do the impossible? Is there another way to send email from a
service?
 
Back
Top