Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Leonard Trevor
  Where is Leonard Trevor?
 Edinburgh
 United Kingdom
 Leonard Trevor
Subject: send more mails with same message
Thread ID: 440528 Message ID: 440528 # Views: 48 # Ratings: 0
Version: Not Applicable Category: C#.NET
Date: Tuesday, September 27, 2016 6:22:39 AM         
   



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

ENTIRE THREAD

send more mails with same message Posted by Leonard Trevor @ 9/27/2016 6:22:39 AM
RE: send more mails with same message Posted by Tore Bleken @ 9/27/2016 6:40:56 AM