Explore Plans
Mobile menu Close menu
Gmail

Create a draft

This action will save a new email as a draft in your Gmail account without sending it. The draft waits in your Drafts folder until you open Gmail and send it yourself.

Developer info

API endpoint slug
gmail.create_draft
Filter code method
Gmail.createDraft.skip(string?: reason)
Runtime method
runAction("gmail.create_draft", {})

Action fields

To Text input > Other

Label
To address
Helper text
Email addresses separated with a space or comma. To, CC and BCC together accept up to twenty. You can leave all three empty and add the recipient in Gmail before you send.
Slug
to
Required
false
Can have default value
true

Cc Text input > Other

Label
CC address
Helper text
Email addresses separated with a space or comma. To, CC and BCC together accept up to twenty.
Slug
cc
Required
false
Can have default value
true

Bcc Text input > Other

Label
BCC address
Helper text
Email addresses separated with a space or comma. To, CC and BCC together accept up to twenty.
Slug
bcc
Required
false
Can have default value
true

Subject Text input > Title

Label
Subject
Helper text
Also how you'll find this draft in your Drafts folder.
Slug
subject
Required
true
Can have default value
true
Filter code method
Gmail.createDraft.setSubject(string: subject)

Body Text input > HTML

Label
Body
Helper text
Some HTML ok
Slug
body
Required
false
Can have default value
true
Filter code method
Gmail.createDraft.setBody(string: body)

Attachment url Text input > File

Label
Attachment URL
Helper text
Link to a file to attach. IFTTT downloads the file at this URL and attaches a copy to the email.
Slug
attachment_url
Required
false
Can have default value
true
Filter code method
Gmail.createDraft.setAttachmentUrl(string: attachment_url)