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

# EmailData

> Send data from your Spark pipeline to others by email

<Panel>
  <Info>
    Dependencies:

    * ProphecyWebAppPython 0.1.2+
    * ProphecyLibsPython 1.9.42+
  </Info>

  <Info>
    Cluster requirements:

    * UC dedicated clusters 14.3+ supported
    * UC standard clusters 14.3+ supported
    * Livy clusters not supported
  </Info>
</Panel>

Use the EmailData gem to send data from your Spark pipeline by email. You can embed a data table in the email body, attach a file (CSV, Excel, or JSON), or do both. This gem is useful for sharing reports, alerts, or intermediate results with others directly from your pipeline. Configure a few parameters to set up your SMTP connection and customize the email content.

## Parameters

| Parameter                        | Description                                                                            |
| -------------------------------- | -------------------------------------------------------------------------------------- |
| SMTP Url                         | SMTP server URL like `smtp.gmail.com`                                                  |
| SMTP Port                        | Default is `587`. Port options may vary between SMTP services.                         |
| SMTP Username                    | Your SMTP username                                                                     |
| SMTP Password                    | Your SMTP password                                                                     |
| Email From (Sender)              | Email address of the sender (same as SMTP connection)                                  |
| Email To (Receiver)              | Email address of the receiver. You can list multiple recipients.                       |
| Email Subject                    | Subject line of the email                                                              |
| Email Cc (Comma separated)       | CC recipient(s)                                                                        |
| Email Bcc (Comma separated)      | BCC recipient(s)                                                                       |
| Embed data as table in mail body | Whether to display the table in the email body                                         |
| Number of rows to add to email   | Maximum number of rows that will be displayed in the email body                        |
| Attach data as email attachment  | Whether to send the data as an attachment in the email                                 |
| Format                           | Dropdown where you can select whether to attach the file as a CSV, Excel, or JSON file |
| Attachment File Name             | How the file will be named when sent as an attachment                                  |
