AspNetCore.Docs/aspnet/web-forms/videos/how-do-i/how-do-i-send-email-asynchr...

1.6 KiB

uid title author description ms.author ms.date ms.assetid msc.legacyurl msc.type
web-forms/videos/how-do-i/how-do-i-send-email-asynchronously-with-aspnet [How Do I:] Send Email Asynchronously with ASP.NET | Microsoft Docs rick-anderson 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 si... aspnetcontent 09/24/2008 77a5c8fa-ebb2-426d-b56b-a5a98a46b516 /web-forms/videos/how-do-i/how-do-i-send-email-asynchronously-with-aspnet video

[How Do I:] Send Email Asynchronously with ASP.NET

by Chris Pels

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.

▶ Watch video (18 minutes)