سؤال

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");
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top