p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 3.5 Basics (http://p2p.wrox.com/forumdisplay.php?f=351)
-   -   What should be the programming so that email get delivered in two emil ids ? (http://p2p.wrox.com/showthread.php?t=85426)

asp.net123 October 21st, 2011 06:42 AM

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;
}
}
}


All times are GMT -4. The time now is 12:02 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.