Procedures
Automation procedures in the Gmail book.
Ensure that you have installed or connected the Gmail book and created a new playground before using these automation procedures.
to add a label to an (email)
Add a label to one or more emails.
Input Concepts
label
The label to add.
text
Yes
(no default)
email
the email or emails to add the label to
gmail email or list of gmail email
Yes
(no default)
Output Concepts
email
the email: The email or emails with the label added
gmail email or list of gmail email
Examples
Add a label to emails
add a label to the email with
... the label is "IMPORTANT"to download an (email's attachments)
Download an email attachment and return it as an IO object.
Input Concepts
Output Concepts
Examples
Download an attachment
to forward an email
Forward an email to new recipients.
Input Concepts
recipients
The recipients to forward the email to
list of text or text
Yes
(no default)
body
Optional additional message to include
text
No
(no default)
html body
Optional additional HTML message to include
text
No
(no default)
cc recipients
Optional CC recipients
list of text or text
No
(no default)
bcc recipients
Optional BCC recipients
list of text or text
No
(no default)
Output Concepts
Examples
Forward an email to someone
Forward an email with additional message
to get some (label's emails)
Retrieve emails from a specified label in Gmail.
Input Concepts
label
The name of the label from which to retrieve emails.
text
Yes
(no default)
max result count
Maximum number of emails to retrieve (default: 10).
number
No
10
Output Concepts
the label's emails: List of GmailEmail objects representing the retrieved emails.
gmail email
Examples
Retrieve all emails from inbox
Retrieve emails with specific subject
to list (labels)
List all labels in the user's Gmail account.
Output Concepts
labels
A list of all labels.
text
Examples
List all labels
to remove a label from an (email)
Remove a label from one or more emails.
Input Concepts
label
The label to remove.
text
Yes
(no default)
email
The email or emails to remove the label from.
gmail email or list of gmail email
Yes
(no default)
Output Concepts
email
the email: The email or emails with the label removed
gmail email or list of gmail email
Examples
Remove a label from an email
to reply an email
Reply to an email.
Input Concepts
body
The body of the reply
text
No
(no default)
html body
The html body of the reply
text
No
(no default)
additional recipients
Additional recipients to include in the reply
list of text or text
No
(no default)
Output Concepts
Examples
Reply to an email
to send an email
Send an email using Gmail API.
Input Concepts
recipients
The list of recipient email addresses.
list of text or text
Yes
(no default)
subject
The subject line of the email.
text
Yes
(no default)
body
The plain text content of the email.
text
No
(no default)
html body
The HTML content of the email.
text
No
(no default)
cc recipients
Optional list of CC recipients.
list of text or text
No
(no default)
bcc recipients
Optional list of BCC recipients.
list of text or text
No
(no default)
Output Concepts
Examples
Send a basic email
Send an email with CC and BCC
Last updated
Was this helpful?
