Sending Email from .NET
I have created an Email Class in C# which can be called from other applications to send email using SMTP protocol. We may create a C# DLL based on the following class and then add reference of the dll in the calling application. using System; using System.Collections.Generic; using System.Text; using System.Net.Mail; using System.Net; using System.IO; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; namespace FazlulsEmail { public class Email { public string sendEmail( string [] toAddressList, string [] ccAddressList, string [] bccAddressList, string subject, string body, string fromAddress, bool isHTML) { MailMessage message = new MailMessage ( new MailAddress (fromAddress), new MailAddress (toAddressList[0])); for ( int i = 1; i < toAddressList.Length; i++) { message.To.Add( new MailAd...