Skip to main content

Mail merge with PDF attachments

One spreadsheet, one template: every recipient gets their own PDF, sent from your own mailbox.

From spreadsheet to sent, row by row

CSV or Excel in

Upload a CSV or .xlsx file with a header row. Numbers such as 1,204.50 and $12.00 and Excel dates are read for you.

A personal PDF per row

Every row fills your template: an invoice, statement, certificate, payslip or letter, with its own file name.

Sent from your own mailbox

Gmail, Google Workspace, Microsoft 365, Zoho, Brevo, SendGrid or any SMTP server, so replies come back to you.

Every row checked first

Bad addresses, missing values and duplicates are listed with their row numbers before anything is sent. Preview any row and send yourself a test.

Pay only for what is sent

Each email your mail server accepts uses one PDF credit. Rejected, failed and skipped rows are not charged.

Fix and resend unsent rows

Download the rows that were not sent with the reason for each, or send them again in one step.

How it works

Design the PDF

Make a template once. Each {{field}} becomes a column you fill.

Upload the spreadsheet

Match columns to fields, write the email, and review every row.

Send

Each recipient gets their own PDF. A report shows what happened to every row.

Mail merge API

Create a campaign from CSV, rows or an uploaded file. Every row is validated and you get a report before anything is sent.

mail-merge.sh
curl -X POST https://api.podpdf.com/mailmerge/campaigns \
  -H "X-API-Key: $PODPDF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "October statements",
    "template_id": "YOUR_TEMPLATE_ID",
    "connection_id": "YOUR_CONNECTION_ID",
    "input": {
      "csv": "Email,Name,Amount\nann@example.com,Ann Lee,1204.50\nbo@example.com,Bo Chan,88.00"
    },
    "mapping": { "customer.name": "Name", "amount": "Amount" },
    "email": {
      "subject": "Your statement, {{customer.name}}",
      "body_text": "Hello {{customer.name}},\nYour statement for {{amount}} is attached.",
      "attachment_filename": "Statement {{customer.name}}"
    }
  }'
  • Preview one row and send a test to yourself first
  • Progress by API, or a mailmerge.campaign.* webhook
  • A CSV report of what happened to every row
  • Unsent rows can be downloaded or sent again

Mail merge questions

How many recipients can one campaign have?
Up to 100 rows per campaign on paid plans. Request a higher limit in the dashboard, up to 10,000 rows; requests are reviewed within one business day.
Which email accounts can send?
Any mailbox with SMTP: Gmail and Google Workspace with an app password, Microsoft 365 with SMTP AUTH turned on, Zoho Mail, or a sending service such as Brevo or SendGrid for larger lists. Your provider’s daily limits apply.
How big can the attached PDF be?
Up to 10 MB per email, one PDF each. Recipient lists can be up to 10 MB.
Is this for marketing email?
Mail merge is for documents people expect from you, such as invoices, statements, certificates and letters. You confirm that every recipient agreed to receive the email before a campaign starts.
Can I run it from my own code?
Yes. Everything after adding the sender works with an API key: create a campaign from rows, CSV or an uploaded file, preview, test, start, follow progress and download the report, with webhooks when it finishes.

Start with a ready-made template

Invoices, receipts, statements and certificates you can customise in minutes.