"
 
 
 
ASP.NET (snapshot 2017) Microsoft documentation and samples

[How Do I:] Create a Reusable Component for Sending Email to a Distribution List

by Chris Pels

In this video Chris Pels shows how to create a component that can be used on multiple web pages and web sites that sends emails to a list of recipients. First, the ASP.NET web site will be configured to send email using the <mailSettings> in the web.config file. Then a class and several methods are created to read a list of recipients from a data source (DB, XML, etc.) and send an email message to each of the recipients using the System.Net.Mail classes. As part of this process exception handling is included. In addition, a user interface is created to allow the user to specify items such as the From address, Subject, add an attachment, etc.

▶ Watch video (35 minutes)





Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnet/web-forms/videos/how-do-i/how-do-i-create-a-reusable-component-for-sending-email-to-a-distribution-list.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>