Breaking News

Editors Picks

Saturday, July 7, 2012

Sending email with attachment in ASP.NET


Introduction
In this article, I am describe how to send email with attachment in ASP.NET using System.IO, System.Net and System.Net.Mail namespaces in this article.
In ASP.NET, sending emails has become simpler. The classes required to send an email are contained in the System.Net.Mail. The steps required to send an email with attachment from ASP.NET are as follows: Below is sample code showing how to send email with attachment from ASP.Net using C#. With this code send main from Gmail SMTP server you can also configure your own SMTP server to change in web config file.
To configure SMTP configuration data for ASP.NET, you would add the following tags to your web.Config file.
Read more ...

Contact Us

Name

Email *

Message *