> ## Documentation Index
> Fetch the complete documentation index at: https://flywheel.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Marketing Email

> Send personalized marketing emails to your users with rich content and tracking

<iframe src="https://app.flywheel.cx/doc-comp-previews/workflow-node-preview?type=send_marketing_email" title="Workflow Node Preview" width="100%" height="250px" className="border dark:border-[#1C1C20]  rounded-xl" />

## How Send Marketing Email Works

Send personalized marketing emails to your users with rich content and tracking. Marketing emails automatically respect user preferences and opt-out settings.

## Configuration

<Columns cols={2}>
  <Card title="Inputs">
    <ParamField path="Send to" type="string" required>
      The Flywheel ID of the user who will receive the email. References a specific user in your system.
    </ParamField>

    <ParamField path="Content" type="object" required>
      The email content created using the built-in email editor. Supports rich formatting, images, links, and dynamic variables.
    </ParamField>

    <ParamField path="CC Emails" type="string[]">
      Additional CC recipients for team notifications and compliance. Supports multiple email addresses.
    </ParamField>

    <ParamField path="BCC Emails" type="string[]">
      Additional BCC recipients for blind copy notifications. Useful for internal tracking and compliance.
    </ParamField>

    <ParamField path="Complete on Send Failure" type="boolean" default="false">
      Stop the workflow if the email fails to send for any reason. When enabled, email send failures will halt the entire workflow.
    </ParamField>
  </Card>

  <Card>
    <iframe src="https://app.flywheel.cx/doc-comp-previews/workflow-config-preview?type=send_marketing_email" title="Workflow Config Preview" width="100%" height="600px" className="" />
  </Card>
</Columns>

<Card title="Outputs">
  <ParamField path="status" type="enum" required>
    The status of the email send operation. Can be `success`, `failure`, or `skipped`.
  </ParamField>

  <ParamField path="to_id" type="string" required>
    The ID of the user that the email was sent to.
  </ParamField>

  <ParamField path="sender_config_id" type="string" required>
    The ID of the sender configuration used for the email.
  </ParamField>

  <ParamField path="email_id" type="string">
    The ID of the email that was sent (available on success).
  </ParamField>

  <ParamField path="create_email_options" type="object">
    The options used when creating the email (available on success).
  </ParamField>

  <ParamField path="create_email_response" type="object">
    The response from the email creation service (available on success).
  </ParamField>

  <ParamField path="code" type="enum">
    The code indicating why the email send operation failed or was skipped. Can be `resend_error`, `duplicate_email`, or `user_marketing_email_opt_out`.
  </ParamField>

  <ParamField path="error_message" type="string">
    The message of the error that occurred (available on failure).
  </ParamField>
</Card>
