|
-
Jul 21st, 2011, 03:20 PM
#1
Thread Starter
Fanatic Member
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
-
Jul 21st, 2011, 03:27 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|