Dear Expert
Need to send mails with the same message to multiple receipients.
protected void btnSend_Click(object sender, EventArgs e)
{
toEmail = txtToMail.Text;
EmailSubj = Convert.ToString(txtSub.Text);
EmailMsg = Convert.ToString(txtMes.Text);
SendEmail(toEmail, EmailSubj, EmailMsg);
}
I am sending 3 mails from a form with the following text boxes
1. txtaToMail.Text;
2. txtbToMail.Text;
3. txtcToMail.Text;
If any of the test mails is empty it should be ignored.
toEmail = txtToMail.Text;
How do I organise the mail system in a loop to cater for the 3 mail adresses.
The message is the same.
The subject the same.
Please assist.
Thanks