private void SendEmailAllGroup() { string emailList = ""; foreach (string email in EmailListBox.Items) { emailList += $"{email.ToString()} "; } SendToMultipleUsers.SendEmail(emailList, txtsubject.Text, txtbody.Text); MessageBox.Show("Successfully sended!"); }
private void button5_Click_1(object sender, EventArgs e) { SendToMultipleUsers.SendEmail(); }