Send Email with Dataset Attachments — CSV, Excel, SMTP
Pricing
from $5.00 / 1,000 e-mail sents
Send Email with Dataset Attachments — CSV, Excel, SMTP
E-mail Apify results as CSV, Excel or JSON attachments with an HTML table in the body, or send any notification, through your own SMTP (Gmail, Outlook, Zoho, SES) or Resend. Use it after any scraper. $0.005 per e-mail.
Pricing
from $5.00 / 1,000 e-mail sents
Rating
0.0
(0)
Developer
Salih Küçükkayış
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
21 days ago
Last modified
Categories
Features
Share
E-mail the results of any Apify run as CSV, Excel or JSON attachments, with the first rows as a readable HTML table in the body. Or send any notification. It goes through your own mail server (Gmail, Outlook / Microsoft 365, Zoho, Amazon SES, any SMTP) or Resend, so it arrives from your address. Made to run after a scraper: daily lead lists, price changes, new jobs, monitoring reports.
$0.005 per e-mail. Preview runs and skipped empty reports are free. No subscription.
Quick start
Press Start with the example input: it builds a preview (no mail server given, so nothing is sent) and saves it as PREVIEW.html.
To send the results of a scraper with Gmail:
{"to": "team@yourcompany.com","subject": "{{rowCount}} new leads today","text": "Today's new leads are attached.","datasetId": "DATASET_ID_OF_THE_RUN","attachmentFormats": ["xlsx"],"skipIfEmpty": true,"smtpHost": "smtp.gmail.com","smtpUser": "you@gmail.com","smtpPassword": "your app password"}
Use it after a scraper
On the scraper's page: Integrations → Connect Actor or Task → Send Email with Dataset Attachments, and map the run's default dataset ID to Dataset to send. Turn on Don't send when the dataset is empty for monitors that only report new results.
What the e-mail contains
- Your text or HTML, with
{{rowCount}}and{{datasetId}}filled in (also in the subject). - A table of the first rows (50 by default, up to 15 columns); links are clickable.
- Attachments: CSV (UTF-8, opens correctly in Excel), Excel (.xlsx) and/or JSON. Nested fields become columns like
address/city. Text that looks like a formula is written as text, so a scraped cell can never run a formula. - Choose Columns to send only the fields that matter, in your order.
Sending: SMTP or Resend
| Provider | SMTP server | Port | Password |
|---|---|---|---|
| Gmail | smtp.gmail.com | 465 | An app password (needs 2-step verification) |
| Outlook / Microsoft 365 | smtp.office365.com | 587 | Your password or an app password, if SMTP is enabled for the mailbox |
| Zoho Mail | smtp.zoho.com | 465 | An app-specific password |
| Amazon SES | email-smtp.REGION.amazonaws.com | 587 | SES SMTP credentials |
Or create an API key at Resend for a verified domain and put it in Resend API key.
Passwords and keys are stored encrypted by Apify and are only used to log in to your mail server.
Switching from apify/send-mail
The fields to, cc, bcc, subject, text, html, replyTo and isMock work the same. Add your SMTP server (or a Resend key) and, if you like, a dataset to attach.
Output
The run's dataset and the OUTPUT record say whether the server accepted the e-mail, the recipients, the subject, the number of rows and the attachment names.
Limits and good to know
- At most 50 recipients per run and 20 MB of attachments. This Actor is for reports and notifications to people who expect them, not for newsletters or cold e-mail.
- "Accepted" means your mail server took the e-mail; delivery and spam filtering are up to the receiving server. Sending from your own domain with SPF and DKIM set up gives the best delivery.
- Up to 200,000 dataset rows are read; for bigger datasets send a link to the dataset instead.
More from this developer
- Google Sheets Import & Export: send results to a Google Sheet instead, with upsert by key.
- Dataset Merge & Dedup Datasets: merge, clean and dedupe results before sending them.
Questions or a missing feature: open an issue on the Actor page.
Need a custom version? I also build custom Actors, changes to this one, and n8n or Make integrations around them, for a fixed price. Open an issue on the Actor page starting with "Custom request", or email support@saligasoftware.com, with what you need and an example input.