Send email through windows application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • irene

    #1

    Send email through windows application

    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
  • Morten Wennevik

    #2
    Re: Send email through windows application

    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.dl l to the compiler line
    (full path might be necessary).

    --
    Happy Coding!
    Morten Wennevik [C# MVP]

    Comment

    Working...