Problem/Motivation

I serve email content hosted in Drupal under an immutable URL, which is imported in full into MC email templates. This allows managing the email content entirely within Drupal, plus having near-full control over the email syntax by using a custom theme for that URL.

Mailchimp currently allows importing HTML as a file or manually pasting HTML code into email templates. Importing HTML via a URL can be done for templates emails only, and even then only in the Legacy Builder.

There are some quirks to this approach, as the resulting HTML email is then cached by Mailchimp and therefore results in stale content as soon as the HTML email content changes. This requires generating a new campaign for every email you want to send.

Proposed resolution

It would be useful to support creating campaigns via this module that can pull in their content from a URL.

To mitigate the obvious security risk of pulling from potentially any location, it could be scoped to only support absolute + relative URLs, assuming the email content is hosted on the same Drupal website, e.g.

/emails/newsletter-1234.

Would anyone else find this useful?

Comments

timfletcher created an issue.