How to remove *|MC_PREVIEW_TEXT|* from email title using Mailchimp and or Mandrill

Declan Murphy picture Declan Murphy · Jul 24, 2017 · Viewed 19.7k times · Source

I have created an email template which includes merging tags on MailChimp which then gets published to Mandrill.

When my script runs and I receive email, as you can see, |MC_PREVIEW_TEXT| appears in the title.

image

I have searched both Mandrill and MailChimp for this tag but it is not appearing in either template file.

How do I remove this from the email?

Answer

cseils picture cseils · Jul 28, 2017

I had this same problem and it was because I am using Handlebars as the Merge Language when sending emails.

Mailchimp is putting the MC_PREVIEW_TEXT variable in the template using the Mailchimp merge language, so if you use Handlebars, it shows up.

To fix this, you have to set your Merge Language to Handlebars in Mandrill Settings -> Sending Defaults.

But when you do this, you have to use Mailchimp merge language when designing your emails in Mailchimp, you can't use Handlebars.

Then when you send to Mandrill from Mailchimp, it will convert all your merge variables to Handlebars.