Results 1 to 2 of 2

Thread: Want To Create WebMethod To Send Email

  1. #1

    Thread Starter
    Fanatic Member EntityX's Avatar
    Join Date
    Feb 2007
    Location
    Omnipresence
    Posts
    798

    Want To Create WebMethod To Send Email

    I was interested in creating a WebMethod that could send an email. I would prefer to use Visual Basic instead of C# since I know Visual Basic much better.
    Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.

    "Persistence is the magic of success." Paramahansa Yogananda

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Want To Create WebMethod To Send Email

    Hello,

    Yip, there should be no problem doing this.

    The System.Net.Mail namespace has a bunch of classes for doing just that:

    http://msdn.microsoft.com/en-us/libr....net.mail.aspx

    Specifically SmtpClient, and it's associated methods:

    http://msdn.microsoft.com/en-us/library/swas0fwc.aspx

    The one difficultly that you might run into is the availability of an SMTP Server, which the SmtpClient assumes you have. Is this the case? If so, it is just a case of configuring the SmtpClient to point at this Smtp Server, and away your emails go.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width