Sending Mail to 2 mail id in asp.net?
-
16-06-2021 - |
题
I have a user registration Form. If a new User register their account in that account. I need to send a message a new user has been registered to my company mail-id and also client mail-id. Now i do it for a single mail-id. How can I do it for 2 mail-ids?
解决方案
see http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx
System.Net.Mail.MailMessage mail = new MailMessage();
mail.To.Add("first address");
mail.To.Add("second address");
不隶属于 StackOverflow