Convert Mailchimp Campaigns to PDF and Email Them Using Zapier

5 Minutes Read

Automatically create a PDF copy of a sent Mailchimp campaign and deliver it as a Gmail attachment using PDF.co and Zapier.

You’ll need accounts for Mailchimp, PDF.co, Zapier, and Gmail.

Step 1: Set Up the Mailchimp Trigger

Create a Zap and select Mailchimp → New Campaign.

Connect your Mailchimp account, select the Audience, and set Status to sent campaigns.

Test the trigger and select a campaign containing an Archive URL. Open that URL to confirm that the campaign’s webpage is accessible without signing in.

Step 2: Convert the Campaign to PDF

Add PDF.co → HTML to PDF Converter.

Connect your PDF.co account through OAuth, then configure:

  • HTML or URL Input: Map the Mailchimp campaign’s Archive URL.
  • HTML Template ID: Leave blank.
  • Page Orientation: Portrait.
  • Page Size: A4, or your preferred paper size.
  • Render Page Background: Enable to include background colors and images.
  • Media Type: Screen to use the webpage’s screen styling.
  • Name: Enter mailchimp-campaign.pdf, or build a filename using the campaign name.

See the HTML to PDF action documentation for additional settings.

Test the action. Open the returned url and check the campaign’s text, images, and page layout.

Step 3: Configure Gmail Delivery

Add Gmail → Send Email and connect your Gmail account.

Configure the email:

  • To: Enter the intended recipient’s email address.
  • Subject: Enter a subject, optionally including the campaign name.
  • Body Type: Select plain text or HTML.
  • Body: Write a short message explaining the attachment.
  • Attachments: Map the PDF.co action’s url output.

Zapier downloads the PDF from the mapped URL and attaches it to the email. See Zapier’s file-handling guide.

Step 4: Test and Publish

Test Gmail using your own email address. Confirm that the message arrives and the attached PDF opens correctly.

Set the intended recipient, then publish the Zap. Matching Mailchimp campaigns will be converted to PDF and emailed automatically.

Related Tutorials

See Related Tutorials