This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.
How do I properly format Gmails TO Names and TO Emails?
I have a simple zap. In Gmail when a label is applied to an an email, an email is sent to another address. I couldn’t see a Forward action so this seems like the best approach.
Looking at the available options in gmail I have TO Names and TO Emails. (same for CC) but these are just strings. I would like to parse these strings so that they output looks like this
TO Name 1 <TO Email 1>, TO Name 2 <TO Email 2>
eg. Gav <xxxxxx>, Sid <xxxxxxxxx>
Just so that it looks correct when the email is sent on to the end user.
It looks like I should use the formatter but I can’t figure out how i loop through the names and emails arrays and join them back together how I want.