Send one email to a list of string of emails

Hi guys,

I am struggling to find the solution to be able to send one email to a list of email. I have a string of email seperated by a comma as so (email1@gmail.com,email2@gmail.com) and I would like to find a way to send one email using gmail to all the contacts on the list.

Here is my screenshot:

Should I use split? I have tried unsuccessfully so far.

Thank you very much,
Robin

Iterator module: split(customerEmailList; ",")

Then read the following:

Every result (item/record) from a search/match/iterator module will output a bundle. To “combine” them into a single structure, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module.

Read this

The Array Aggregator module allows you to build a complex array of collections for a later module’s field to map multiple items (collections) to it.

Here is an example of using the “Target structure type” of an Array Aggregator module:

As you can see, the “Map” toggle on fields are used when you have an array. You can easily build an array variable to map to a field, by using an Array Aggregator module and select the “Target Structure Type” as the future field you want to map the array into.

Related posts:

2 Likes

Thanks a lot.

I think I understand the iterator/aggregator now, thanks a lot.

I can’t seem to be able to sort the “to” field for sending an email to all the emails on the list with Gmail though.




Thanks so much!

Oh, it looks like you can directly do it in the “To” field without using any Iterators or Aggregators!

Screenshot_2024-02-26_090249

2 Likes