Gmail
Table of Contents
{gmail-firstname}
— Get the first name of the recipient.{gmail-name}
— Get the full name of the recipient.{gmail-email}
— Get the email address of the recipient.{gmail-myemail}
— Get the email address, or alias, that you're sending the email from.{gmail-subject}
— Get the subject line of the email.{gmail-datereceived}
— Get the date you received the email.{gmail-cc}
— Add an email address to the CC field.{gmail-bcc}
— Add an email address to the BCC field.{gmail-send}
— Sends the email.
{gmail-firstname}
Get the first name of the recipient.
It will get recipients' first names populated in the To field.
This can be used when replying to an email. It can also be used when composing a new message if recipients are already populated in the To field.
If no names can be found, the default setting will be returned.
Settings
Setting | Required | Description |
---|---|---|
default | no | The default value to use if no recipient is found. |
type | yes | Use "single" to get only the first match (e.g. "John"), "multiple" to get all the matches (e.g. "John, Jack, and Susan") and "list" to get a list of all the matches. |
Example Usage
One example is using this command along with the multiple setting to greet eveyone in the thread by their first name. Use {gmail-name} for a more formal tone.
Hey {gmail-firstname: type=multiple; default=there},
Let's have a get together early next week to discuss!
Thank you,
Manager
{gmail-name}
Get the full name of the recipient.
It will get recipients' full names populated in the To field.
This can be used when replying to an email. It can also be used when composing a new message if recipients are already populated in the To field.
If no names can be found, the default setting will be returned.
Settings
Setting | Required | Description |
---|---|---|
default | no | The default value to use if no recipient is found on the email. |
type | yes | Use "single" to get only the first match (e.g. "John Smith"), "multiple" to get all the matches (e.g. "John Smith, Jack Doe, and Susan Carpenter") and "list" to get a list of all the matches. |
Example Usage
Get someone's full name in the email thread with this command. It's useful when you're emailing someone for the first time.
Hey {gmail-name},
It's very nice to meet you. Let's set up a call a bit later this week. What times work best for you?
Thank you,
John Doe
{gmail-email}
Get the email address of the recipient.
It will get email addresses populated in the To field.
This can be used when replying to an email. It can also be used when composing a new message if recipients are already populated in the To field.
Settings
Setting | Required | Description |
---|---|---|
default | no | The value to use if an email cannot be found. |
type | yes | Use "single" to get only the first match (e.g. "john@example.com"), "multiple" to get all the matches (e.g. "john@example.com and susan@example.com,") and "list" to get a list of all the matches. |
Example Usage
There are a variety of things you can do with the email address in your messages. One example is using it to embed it in a link to your organization's website for sign up purposes.
Hey {gmail-name}, you can always log back into your account by following this link: https://example.com/login?email={gmail-email}
{gmail-myemail}
Get the email address you're sending the email from.
If you have Gmail's "Send Mail As" feature enabled to send emails from multiple email addresses, it will return the one you choose.
This can be used when replying to an email. It can also be used when composing a new message.
Example Usage
One great example of this command is to change the messaging in your snippets based on the email address.
{if: {gmail-myemail} = "first@example.com"}
Hey, thank you for reaching out to our First team. We'll get back to you soon.
{elseif: {gmail-myemail} = "second@example.com"}
Hey, second team here. We're gonna have to dig a bit deeper into this ticket and get back to you.
{endif}
{gmail-subject}
Get the subject line of the email.
This can only be used when replying to an email. It cannot be used when composing a new message.
Settings
Setting | Required | Description |
---|---|---|
default | no | The value to use if no email subject is found. |
Example Usage
You can check the contents of the email subject line to see if it contains specific keywords. One example is checking to see if the subject contains "Invoice" and if it does then automatically CC accounting by also utilizing the {gmail-cc} command.
{if: contains({gmail-subject}, "invoice"); trim=yes}
{gmail-cc: accounting@example.com; trim=yes}
{endif: trim=yes}
Hey {gmail-name}, thank you for forwarding us your invoice. We'll get back to you if we have any additional questions.
Thank you,
Example Support
{gmail-datereceived}
Get the date you received the email.
This can only be used when replying to an email.
Settings
Setting | Required | Description |
---|---|---|
default | no | The value to use if no date is found. |
format | no | A string to format the date — (Visit https://blaze.today/commands/time/ for more information). |
Example Usage
You can utilize the {gmail-date} command in conjunction with the {time} command to let the recipient know a different time based on the email’s date. This can be useful for customer support emails that respond first to users so say they’re looking into an issue and then provide an update some time afterwards.
In the example below we add an optional message if two days have passed since the email was received.
{dateFromEmail={time: X; at={gmail-datereceived}; pattern=MMM Do, YYYY; trim=yes}}
{now={time: X}; trim=yes}
{twoDaysInUnixTime=172800; trim=yes}
Hey {gmail-name}, thank you for reaching out to Example.com support.{if: abs(dateFromEmail - now) >= twoDaysInUnixTime} We're so sorry for taking so long to get back to you we've been swamped with support tickets. {endif}
We're reviewing your ticket now and will be getting back to you shortly.
Thank you,
Example Support Team
{gmail-cc}
Add an email address to the CC field.
This can be used when replying to an email and when composing a new message.
Settings
Setting | Required | Description |
---|---|---|
address | yes | The email address to add. |
Example Usage
One example is utilizing {gmail-email} or {gmail-name} commands in conjunction with {gmail-cc} to make sure that a specific person always gets CC’d for certain emails from certain people.
Hey {gmail-name}, that's a very good question. Give us a bit to research and get back to you.
{gmail-cc: address=manager@example.com; trim=yes}
Thank you,
Sally
{gmail-bcc}
Add an email address to the BCC field.
This can be used when replying to an email and when composing a new message.
Settings
Setting | Required | Description |
---|---|---|
address | yes | The email address to add. |
Example Usage
There are a variety of services that provide BCC email addresses to let you ping their service. One example is Pipedrive, a CRM service, that provides you with a BCC email address. You can use this command to automatically include that BCC address in important emails.
Hey {gmail-name}, thank you for reaching out!
{gmail-bcc: address=yourcompany@pipedrive.com}
{gmail-send}
Send the email.
This can be used when replying to an email and when composing a new message.
It should be used as the last command in your snippet.
Example Usage
Speed up the sending of your support emails by adding this command to the end of your snippets.