Is is possible to use the EWS to loop through emails and send?

Hello,

I have not able able to get this to work. I can't imagine its impossible because it makes no sense to have an API that only sends one email at time or hand code the emails. Is it possible to use a database to gather a group of emails and loop through them and add them then send the email?

Something like this?

 foreach (var item in vendorEmails)
            {
              
                email.ToRecipients.Add(item.email);
                
            }

Nothing I've tried seems to work. Even if I only make the select statement 10 emails it still just sits there and never completes. Has anyone ever done this?I am assuming there is a way.

Thanks

Laura

May 13th, 2015 10:35am

Hello Laura,

Can you please explain what you need exactly (idealy step by step).

I will awnser you how to do it then.

Regards,

Mounir

Free Windows Admin Tool Kit Click here and download it now
May 18th, 2015 11:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics