[PROD - TASK] Rewst: Send Email with Attachment
This workflow provides a reliable method for sending emails with attachments through Rewst, functioning as a critical communication component that can be called from other automations to deliver documents, reports, or files to clients or team members. MSPs can leverage this building block to automate client communications for service completion notifications, scheduled security reports, license renewals, or documentation delivery—all with proper attachments and consistent branding. Technically, the workflow accepts inputs including recipient addresses, subject, body content, and attachment details, then determines whether to send via standard email or through Microsoft Graph (allowing for user impersonation), with built-in error handling for failed deliveries or missing user accounts. This reusable component eliminates the need to rebuild email functionality in every workflow, allowing MSPs to standardize client communications while focusing on building more complex automation processes.
This workflow contains 13 tasks.
Inputs
send_to - array (Required)
Default:
{{ [ ] }}
subject - string
send_as_guid - string (Required)
use_failover - boolean
Default:
{{ true }}
attachment_name - string
attachment_type - string
encoded_contents - string
message_contents - string
no_failover_attachment - boolean
Default:
{{ false }}
Outputs
automation_log: Standardized Rewst automation log
output: Outputs a dictionary object with a key for success, the value for success is a boolean value indicating whether the workflow was successful or not.
Key tasks
check_sendas_field: Communication/notification
Send_Email: Communication/notification
core_sendmail: Communication/notification
microsoft_graph_get_user: Data retrieval
user_not_found: Core integration: noop
Jinja examples
Example 1
Used in input parameter 'subject'
Last updated
Was this helpful?