Send email through windows application

  • Thread starter Thread starter irene
  • Start date Start date
I

irene

Hi,

I am trying to find a way to send emails through windows application
by vb.net. I was using system.web.mail.smtpmail when I am doing the
web application, but I couldn't find it on windows application. Can
anyone kindly tell me how to do it in windows application?

Thanks.

Irene
 
Hi Irene,

You can use System.Web.Mail classes just fine in a windows application.
You will however need to add a reference to the System.Web.dll
In Visual Studio in the Solution view right-click References and add
System.Web.dll from the list of .Net components.
Outside Visual Studio you would add /r:System.Web.dll to the compiler line
(full path might be necessary).
 
Back
Top