sending email from a console app

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

    sending email from a console app


    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.


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: sending email from a console app

    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.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Philip Townsend" <ptownsend@v1te ch.com> wrote in message
    news:OVNRlBqsDH A.2004@TK2MSFTN GP10.phx.gbl...[color=blue]
    >
    > 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.
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    Working...