Page view counter

How Do I: Send Email Asynchronously with ASP.NET

In this video, Chris Pels shows how to use the System.Net.Mail classes in ASP.NET to send an asynchronous email message. First, see how to configure a web site to send email using the <mailSettings> element in the web.config file. Next, create a simple user interface for entering email information. Then learn how to create use the MailMessage class to create an email message in the code behind for the page. As part of that process create an event handler for the asynchronous callback following the sending of the email. In the event handler see how to use the instance of the AsynchCompletedEventArgs class which provides information about the email sending process. Finally, send a test email asynchronously, following the steps in the debug mode, and view the actual email received from the process.

Presented by Chris Pels

Duration: 18 minutes, 18 seconds

Date: 24 September 2008

Watch the video   |   Download the video   |   Get VB code  or  C# code

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 13

Leave a Comment

malcolms : On September 26, 2008 1:17 AM said:

Great video

imchaz : On September 26, 2008 9:36 AM said:

Probably dumb question here.  After watching it, what is the advantage of using this?  Let me preface that I am new the terminology of Asynchronously.  What is the difference of using just the mail object and using the basics?

MesfinReda : On September 26, 2008 3:09 PM said:

This video is posted at a right time when I am having a mail related issue. nothing complicated it just sends email on contact us page and I am having this problem.

<system.net>

   <mailSettings>

     <smtp>

       <network host="smtp.menelikalumni.org" port="25" userName="email@domain.com" password="password" defaultCredentials="true"/>

     </smtp>

   </mailSettings>

 </system.net>

and i am getting this error

Transaction failed. The server response was: 5.7.1

anyhelp would be appreciated.

Thanks

imchaz : On September 26, 2008 5:08 PM said:

MesfinReda,

You should put that problem in the Forum area for someone to respond. It will give you better exposure in solving your problem.

MesfinReda : On September 29, 2008 11:51 AM said:

I get it to work.

Thanks

dkb : On October 08, 2008 11:32 PM said:

Hi Chris I can't thank you enough for this video.

DKB

techiesridhar : On October 09, 2008 3:14 PM said:

HI Chris.I used to watch all the video avaliable in this page. Hats off to you man for doing such a nice job.. keep posting..

ashrafur : On October 27, 2008 5:51 AM said:

this video gives a very clear idea about how to send asynchronous mail using asp.net.

I was also expecting some description on why we will send asynchronous main instead of synchronous. what are the benefits and so on.

shiawmeng : On November 06, 2008 12:40 PM said:

It's a good video ! help me a lot of problem. Thanks!

LinhMy : On November 07, 2008 9:07 PM said:

It's great! I can do my exercises..Thank you very much!

izet : On November 10, 2008 3:26 PM said:

Great video.

djafer : On November 13, 2008 1:42 AM said:

Güzel bir çalışma daha izledim, Thanks!

abelanet : On November 14, 2008 6:36 PM said:

Simply Thanks :)

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities