Skip to content

PDF Mail Merge with Email Delivery

Send personalized PDFs as email attachments directly from your mail merge. Configure SMTP, compose templates, and deliver to hundreds of recipients in one job.

What Is PDF Mail Merge with Email Delivery?

PDF mail merge with email delivery generates personalized PDFs and sends each one as an email attachment to the corresponding recipient — all in a single job. Instead of downloading a ZIP file and manually forwarding documents, Mergram handles delivery automatically.

Connect your SMTP server, compose an email template with merge placeholders, and select the column that contains email addresses. Each row in your spreadsheet produces a personalized PDF attached to a personalized email, sent directly to the right person.

Who Uses This?


How to Set Up Email Delivery

Step 1 — Configure Your SMTP Server

Navigate to Settings → SMTP and enter your email provider’s credentials. Mergram encrypts your password with AES-256-GCM and stores it securely.

ProviderHostPortNotes
Gmailsmtp.gmail.com587Free, up to 500 emails/day. Use an App Password if 2FA is enabled.
SendGridsmtp.sendgrid.net587High-volume transactional email. Use your API key as the password.
Mailgunsmtp.mailgun.org587Developer-friendly. Use your domain’s SMTP credentials.
Amazon SESemail-smtp.*.amazonaws.com587Cost-effective at scale. Region-specific hostname.
CustomYour server’s address587 or 465Any standard SMTP server is supported.

Gmail tip

If you use Gmail with two-factor authentication, generate an App Password in your Google Account settings. Use that 16-character password — not your regular Gmail password — in the SMTP configuration.

Step 2 — Design Your PDF Template

Upload your PDF template and place data fields exactly as you would for a standard merge. This template becomes the personalized attachment for each email recipient.

You can use all field types: text, QR codes, barcodes, and images. You can also enable password protection so each recipient’s PDF is encrypted with their own unique password.

Step 3 — Compose Your Email

Switch to the Email tab in the merge panel. Use the built-in rich text editor (powered by Tiptap) to compose your message:

Example email body:

Dear [[Name]],

Please find your invoice [[InvoiceNumber]] attached.
The total amount of [[Amount]] is due by [[DueDate]].

Thank you for your business.

Each recipient sees their own data filled in — [[Name]] becomes “Alice Chen”, [[Amount]] becomes “$1,500.00”, and so on.

Step 4 — Map the Email Column

Select which spreadsheet column contains the recipient email addresses. Mergram uses this column to determine where each personalized PDF is sent.

Make sure your spreadsheet has a dedicated column for emails. Common column names are Email, email_address, or RecipientEmail.

Step 5 — Send and Track

Click Send to start the email campaign. Background workers process the job in a queue:

Processing time

Email jobs are processed by background workers. A batch of 500 emails typically takes a few minutes, depending on your SMTP provider’s rate limits. You can close the browser — the job continues running on the server.


SMTP Provider Comparison

ProviderFree TierVolumeSetup DifficultyBest For
Gmail500/dayLowEasySmall teams, testing
SendGrid100/dayHighMediumTransactional email at scale
MailgunLimitedHighMediumDeveloper-centric workflows
Amazon SESPay-per-useVery highAdvancedCost-effective bulk sending
Custom SMTPVariesVariesVariesSelf-hosted email servers

Rate limits

Every SMTP provider enforces rate limits. If you’re sending thousands of emails, use a dedicated transactional email service (SendGrid, Mailgun, Amazon SES) rather than Gmail. Exceeding rate limits causes delivery failures that show up in the job status panel.


Combining Email with Other Features

Email + Password Protection

Send encrypted PDFs via email. Each recipient gets their own PDF protected with a unique password derived from your spreadsheet data. Use a template like [[lastName]]-[[birthYear]] — the recipient knows their own last name and birth year but cannot open anyone else’s document.

This is ideal for sensitive documents like pay stubs, financial statements, and healthcare records.

Email + QR Codes

Include verification QR codes in emailed PDFs. Each certificate or document gets a unique scannable code linking to a verification page. Recipients can share the printed document, and anyone can scan to confirm authenticity.

Email + Custom Filenames

Use filename templates to name each attached PDF descriptively: Invoice_[[InvoiceNumber]]_[[ClientName]].pdf. The recipient sees a clear, professional filename instead of a generic one.


Best Practices

  1. Test with a small batch first — Send 5–10 emails to yourself or a test list before running a full campaign. Verify formatting, merge fields, and attachment content.

  2. Use a dedicated sender address — Send from a professional address (e.g., billing@yourcompany.com) rather than a personal Gmail. This improves deliverability.

  3. Verify your email column — Scan your spreadsheet for missing or malformed email addresses before starting. Invalid addresses cause per-row failures.

  4. Personalize the subject line — Include merge placeholders in the subject (e.g., Your Invoice [[InvoiceNumber]]) to improve open rates and reduce spam filtering.

  5. Enable password protection for sensitive documents — Financial statements, pay stubs, and healthcare records should always be encrypted. Use a password template the recipient can derive from their own data.

  6. Monitor delivery status — After sending, review the per-recipient status in the job panel. Retry any failed sends and investigate recurring failures (often caused by invalid email addresses or SMTP rate limits).


Get Started

Send your first personalized PDF email campaign in minutes. Upload a PDF template, connect a spreadsheet with email addresses, configure your SMTP server, and compose your message. Mergram handles the rest — generating and delivering each PDF automatically.

Try Mergram free — connect your SMTP server and send your first batch today.

Step-by-step guide

  1. 1

    Configure Your SMTP Server

    Go to Settings → SMTP and enter your provider's host, port, username, and password. Supported providers include Gmail, SendGrid, Mailgun, Amazon SES, and any custom SMTP server.

  2. 2

    Design Your PDF Template

    Upload a PDF template and place data fields as you normally would. This PDF becomes the personalized attachment for each email recipient.

  3. 3

    Compose Your Email

    Switch to the Email tab in the merge panel. Write a subject line and body using the rich text editor. Insert merge placeholders like [[Name]] and [[Company]] to personalize each message.

  4. 4

    Map the Email Column

    Select which spreadsheet column contains recipient email addresses. Mergram uses this column as the delivery target for each row.

  5. 5

    Send & Track

    Click Send. Background workers process the campaign with real-time progress tracking. Monitor per-recipient delivery status and retry any failed sends.

Frequently asked questions

Can I send merged PDFs directly by email?
Yes. Connect your SMTP server in Mergram, compose an email body with merge placeholders, and each recipient receives their own personalized PDF as an attachment. Gmail, SendGrid, Mailgun, Amazon SES, and any custom SMTP server are supported.
Which SMTP providers work with Mergram?
Mergram supports Gmail (free, up to 500 emails/day), SendGrid, Mailgun, Amazon SES, and any standard SMTP server. Configure host, port, username, and password in the SMTP settings.
How do I personalize the email body?
Use the built-in rich text editor to compose your email body. Insert merge placeholders like [[Name]] or [[Company]] — these are replaced with each recipient's data from your spreadsheet. The editor supports links, bold, italic, and lists.
Are SMTP passwords stored securely?
Yes. SMTP passwords are encrypted with AES-256-GCM before storage. They are decrypted only at the moment of sending and are never logged or exposed in API responses.
How many emails can I send in one job?
Up to 100,000 recipients in a single email campaign job. Background workers process the queue with real-time progress tracking. You can monitor per-recipient delivery status and retry failed sends.
Can I track which emails were delivered?
Yes. Mergram tracks per-recipient delivery status — sent, failed, or pending. You can view the status of each email in the job progress panel and retry any failed deliveries.
Does the email support HTML formatting?
Yes. The email body editor uses a rich text (HTML) editor. You can add links, bold text, italic text, bulleted lists, and more. Recipients who cannot render HTML see a plain-text fallback generated automatically.

Ready to try it yourself?

Start merging PDFs in minutes — free account required, no credit card needed.

Related articles