Email attachments and engagement tracking
Zend Email now carries attachments, and every verified domain can opt into open and click tracking — so you can send invoices and receipts as real files, and measure what happens after you hit send.
Attachments
Attach up to 10 files (7 MB total) to any send — PDFs, receipts, images, CSVs. Pass a Buffer or base64 string with the Node SDK, or base64 over the raw API.
await zend.emails.send({
from: 'billing@yourdomain.com',
to: 'customer@example.com',
subject: 'Your invoice',
html: '<p>Invoice attached.</p>',
attachments: [
{ filename: 'invoice.pdf', content: pdfBuffer, contentType: 'application/pdf' },
],
});
Open & click tracking
Toggle open and click tracking per domain from the dashboard under Email → Domains:
- Opt-in per domain — off by default, so password resets and other sensitive mail stay untracked unless you choose otherwise.
- First-touch webhooks — the first open or click fires a
message.read/message.clickedwebhook. - In your metrics — unique and total opens and clicks, plus open and click-through rates, on the deliverability dashboard.
See the Email documentation and the Node SDK to get started.