Page 1 of 1
					
				Sending an email to a group using gmail
				Posted: 16 May 2014 20:24
				by magik20
				is this possible?  i have a group with many addresses that i would like to email instead of just one email address at a time
			 
			
					
				Re: Sending an email to a group using gmail
				Posted: 17 May 2014 04:57
				by Martin
				Hi,
You can use a comma separated list in the TO-field to send one mail to multiple addresses.
You could also add all mail addresses to a list in an action 
Script and then use a loop to send the mail to each address individually. 
The flow could look like this:
-action 
Script: list = newList("a@a.com", "b@a.com", "c@a.com");"
-condition 
Expression: isEmpty(list)
--> true: -action 
Notification on Screen: Finished, no more mails to send
--> false: 
  -action 
Script: addr = removeElement(list, 0); // to remove the first element of the list, store the value in variable 
addr
  -action 
Notification on Screen: {addr} // drag the (+)-icon back to the condition above to create the loop
When everything works as expected, replace the last action with an action 
Mail with Gmail: {addr}.
Regards,
Martin