Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2011, 06:42 AM
Registered User
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default What should be the programming so that email get delivered in two emil ids ?

Hi,
I am learning asp.net using your book.
I have created the the feedback form just like mentioned in the book. But I would like to add one feature in it so that when user fill the form and click on submit button the data of form get delivered in two emil ids. I tried by putting commas between two email ids but it do not works. please help me.


MailMessage myMessage = new MailMessage();
myMessage.Subject = "Response from web site";
myMessage.Body = mailBody;

myMessage.From = new MailAddress("santosh@yahoo.com", "Santosh Kumar");
myMessage.To.Add(new MailAddress("options@gmail.com,second_email@yahoo. com", "Santosh Kumar"));

SmtpClient mySmtpClient = new SmtpClient();
mySmtpClient.Send(myMessage);

lblMessage.Visible = true;
FormTable.Visible = false;
}
}
}





Similar Threads
Thread Thread Starter Forum Replies Last Post
IDs can't start with a number acr.repair ASP.NET 3.5 Basics 4 January 12th, 2010 03:53 PM
where is the "delivered by Report server E-mail" yuqlin BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 June 29th, 2008 05:06 PM
ids dhoward VB.NET 2002/2003 Basics 4 December 17th, 2007 05:46 PM
Email IDs rohit_ghosh Excel VBA 2 July 16th, 2007 03:57 PM
Dialog Help Ids sumeetpm Visual C++ 0 October 31st, 2006 03:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.