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

  • Question

  • 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

    Wednesday, May 13, 2015 2:34 PM

All replies

  • 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

    Monday, May 18, 2015 3:21 PM