Skip to main content

EmailData

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

ParameterDescription
SMTP UrlSMTP server URL like smtp.gmail.com
SMTP PortDefault is 587. Port options may vary between SMTP services.
SMTP UsernameYour SMTP username
SMTP PasswordYour 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 SubjectSubject line of the email
Email Cc (Comma separated)CC recipient(s)
Email Bcc (Comma separated)BCC recipient(s)
Embed data as table in mail bodyWhether to display the table in the email body
Number of rows to add to emailMaximum number of rows that will be displayed in the email body
Attach data as email attachmentWhether to send the data as an attachment in the email
FormatDropdown where you can select whether to attach the file as a CSV, Excel, or JSON file
Attachment File NameHow the file will be named when sent as an attachment