
Step 2

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
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)
{
try
{
//===============================================//
MailMessage mail = new MailMessage();
mail.To.Add(TextBox_email.Text);
mail.From = new MailAddress("[email protected]");


Join the conversation! Your thoughts help the community grow.