How to Automate CC'ing people in Gmail

This snippet allows you to choose an option from the dropdown menu and have them automatically CC'd in an email in Gmail.

It uses Text Blaze's Gmail Command Pack.

{note}{formmenu: default=Sales; Support; Social; name=CC Options}{endnote}

Hi there,

Looking forward to hearing from you.

Best,
{if: `cc options`="Sales"}{gmail-cc: sales@blaze.today}{endif}{if: `cc options`="Support"}{gmail-cc: support@blaze.today}{endif}{if: `cc options`="Social"}{gmail-cc: social@blaze.today}{endif}

2 Likes

Adding to @Dylan 's implementation, here is a variation for multiple emails and a way to avoid if/else

{note}{formmenu: values={=emails}; name=CC Options; multiple=yes; itemformatter=(v) -> v["name"]}
{emails=[[
"name": "Sales",
"email": "sales@blaze.today"
], [
"name": "Support",
"email": "support@blaze.today"
], [
"name": "Social",
"email": "social@blaze.today"
]]}
{endnote}

Hi there,
Looking forward to hearing from you.
Best,
{gmail-cc: {=map(`cc options`, (v) -> v["email"])}}}

1 Like