Quantcast
Viewing all articles
Browse latest Browse all 49201

MailChimp add-on module to import newsletters from MailChimp as Drupal nodes

This month, I wrote a custom module for a client, that import newsletters (or "campaigns", as MailChimp calls them) from a given MailChimp account into a Drupal site as nodes. (As many of you know, MailChimp is a rather nice third-party newsletter service.)

How it works:
- Depends on mailchimp.module, using the same account configured in mailchimp.module settings.
- Uses a custom table to store ID's of imported messages.
- Checks MailChimp account for new messages on every cron run, or when an admin pushes the big shiny "Import campaigns" button.
- Uses the MailChimp API to connect to your MailChimp account and import your messages
- Provides config page where admin can specify: which list(s) to import from; what kinds of messages to import (sent or not sent); what publishing options to apply to the nodes that will be created (published/unpublished, etc); and taxo terms to apply to the nodes that will be created.

It works for my client. Now I'm wondering if it would be useful to others. Members of this group who use a 3rd-party newsletter system such as MailChimp, what say you to importing newsletters as nodes?


Viewing all articles
Browse latest Browse all 49201

Trending Articles