Author: myceno | Posted on: 1/26/2010 9:48:33 AM | Views : 246

Hi,
I use c# Lang .. & I belt page to send msg..
 
I put this code behind :
protected void Button1_Click(object sender, EventArgs e) { //Create instance of main mail message class. MailMessage mailMessage = new MailMessage(); //Configure mail mesage //Set the From address with user input // mailMessage.From = New System.Net.Mail.MailAddress(txtFromAddress.Text.Trim()) //Get From address in web.config mailMessage.From = new MailAddress(txtFrom.Text.Trim()); //Another option is the "from" attirbute in the <smtp> element in the web.config. //Set additinal addresses mailMessage.To.Add(new MailAddress(txtToAdress.Text.Trim())); //mailMessage.CC //mailMessage.Bcc //mailMessage.ReplyTo //Set additional options m ...

Go to the complete details ...