| Next Tip?
Home » Archive

Articles Archive for June 2009

Asp.net, CSharp »

[11 Jun 2009 | One Comment | 5,027 views]

Sending Email Through ASP.NET using C#
The following Sample Code is the code which can be used to send mails through ASP.Net C#…. its a working code for me…..

<pre>using System;
using System.Data;
using System.Configuration;
using System.Collections;
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;
using System.Net.Mail;
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
//Calling the function SendMail
Response.Write( SendMail(“meetuchoudhary@gmail.com”,”meetudmeet@gmail.com”,”meetudmeet@yahoo.com”,”Test Mail”,”Test Mail Body”));

Get Adobe Flash playerPlugin by wpburn.com wordpress themes