Action
Random Email Signature
Last update
11 months ago
- Unlisted
Open mail message with the first line of the draft as the subject and remaining content as the body converted to HTML via Markdown. Can be duplicated and modified to create pre-addressed messages, or use templates.
Steps
-
script
// load your quote draft into a variable // you can copy the identifier of the draft from the context menu // in the draft list let d = Draft.find("620BAB4D-440A-4A03-B655-848ECE1757B7") // select a random line from the draft // the `lines` property of a draft is an array of its lines, separated by line feeds const randomLine = d.lines[Math.floor(Math.random() * d.lines.length)]; // create a template tag to use in a later email step // this creates a `[[quote]]` tag you can use in an action steps after this script // in the same action, like an email step draft.setTemplateTag("quote", randomLine)
-
mail
toRecipients ccRecipients bccRecipients subjectTemplate [[title]]
bodyTemplate %%[[body]]%% John Esher, Jr. (267) 239-4476 [[quote]]
sendAsHTML true
sendInBackground false
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.