Last post Mar 04, 2020 06:38 AM by Ramanghantiyala
Mar 04, 2020 05:16 AM|shsu|LINK
I have 300 email with gmail, yahoo etc. I want to send smtp mail to all these 300 emails on a button click. How can I add it to a group. In my company only company's extension emails can be grouped in to 1 ID, so that I can use in To of smtp mail.
so how to put theses 300 email addresses in TO portion ie.
here emails is a session name which carry the email ID of one person.
Mar 04, 2020 06:38 AM|Ramanghantiyala|LINK
Can you try with BCC , because why you need to call the function for 300 times..
private void sendEmail(string email)
MailMessage emailMassage = new MailMessage();
//emaillist is email list of 300 email
foreach (var x in emailList)
// continue code here