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

# Send

> Sends emails using @markifactmail.com email addresses with customizable recipients, subject, body content, and attachment support

Sends emails using @markifactmail.com email addresses with customizable recipients, subject, body content, and attachment support. The body renders markdown content automatically which is the recommended format for AI nodes. This is the preferred email sending method for most users.

|                       |                       |
| --------------------- | --------------------- |
| **App**               | Email                 |
| **Operation ID**      | `email_send`          |
| **Type**              | Action                |
| **Connection**        | None                  |
| **Credits per run**   | 2                     |
| **Agent / MCP tool**  | Yes                   |
| **Requires approval** | Yes (write operation) |

## Inputs

| Field                | Type                       | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| -------------------- | -------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `to`                 | string                     | Yes      | -       | The recipient email address(es), comma-separated. Leave empty if you want to use the user account email.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `cc`                 | string                     | No       | -       | The CC email address(es), comma-separated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `subject`            | string                     | Yes      | -       | The email subject.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `body_type`          | string or SelectableOption | Yes      | -       | The body type for the email. Available options:  'text' : this is the default body type used most of the time. This support markdown formatting, you should use most of the time and don't worry about conversion. Just pick it especially for AI nodes. 'html' : this is used when you want to send an email with HTML content. This is rarely used, use it only when you have custom styling or HTML content that you want to send as is.                                                                                                                                                                                                                                                        |
| `body`               | string                     | Yes      | -       | The email body.             - For AI nodes output, use them as is and keep 'markdown' formatting. They will be converted automatically. Don't use HTML with AI nodes.             - For reporting nodes like Google Ads, GA4, etc. - Don't add the entire reporting data output in body, instead use 'csv' attachment format to send the data as a CSV file.             - When using text/markdown formatting and you have multiple sections, use markdown headers (e.g., ## Section Title) to separate them.                                                                                                                                                                                     |
| `include_attachment` | boolean                    | No       | `False` | Whether to include an attachment. Default is false. Only ONE attachment is allowed per email. Don't use attachment unless you are instructed to do so, users say they want to send an email with attachments, otherwise leave it false and use the body                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `attachment_format`  | string or SelectableOption | No       | -       | The attachment format. Available options:  'csv' : Use this to send data from reporting nodes like Google Ads, Facebook, etc. It will convert the data to CSV format automatically. You can only include one output in the attachment data for CSV format. 'pdf' : Use this to send text or markdown content as a PDF attachment. It will convert the body content to PDF format automatically. You can combine multiple outputs in the attachment data for PDF format. 'txt' : Use this to send plain text files. It is suitable for simple text data without any formatting. 'json' : Use this to send structured data in JSON format. It is ideal for API responses or complex data structures. |
| `attachment_data`    | any                        | No       | -       | The attachment data. This will be mainly the output of upstream nodes in the workflow. Don't worry about data conversion, it will be handled automatically.  AI node content can be used directly in the body, no need to attach it separately except if user specifically requests it and in this case use PDF format it will convert markdown to PDF automatically.                                                                                                                                                                                                                                                                                                                              |
| `attachment_name`    | string                     | No       | -       | The attachment file name, no spaces are allowed. Don't put the extension here, it will be added automatically based on the attachment format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `str`

Returns success message confirming email sent.
