Newsletters can now greet each subscriber by name
Fields you store on a contact, like a first name or a plan, can now be used in newsletter and broadcast templates. Each subscriber gets their own version of the email.
A contact in euromail can carry a few facts about the person: a first name, the plan they are on, where they signed up. Until now we stored those facts and never used them. Our contact list page said they could fill in your templates. They couldn't. That was wrong, and it's fixed.
If a newsletter or a broadcast uses a template, every subscriber now gets their own copy, filled in from their own contact.
How it looks#
Say you store this on a contact:
{ "first_name": "Aino", "plan": "pro" }
and your template says:
<p>Hi {{ contact.first_name | default("there") }},</p>
{% if contact.plan == "pro" %}
<p>Thanks for being a Pro customer. Your early access is on.</p>
{% endif %}
Aino receives:
<p>Hi Aino,</p>
<p>Thanks for being a Pro customer. Your early access is on.</p>
A subscriber on the free plan with no first name saved receives:
<p>Hi there,</p>
The subscriber's address is there too, as {{ contact.email }}. It's handy for a line like "You're getting this because [email protected] signed up for product updates."
Your own values still work#
Whatever you already pass with the newsletter, like an offer name or a date, stays where it was. The contact's fields sit next to it under contact, so a field called offer on a contact can't overwrite your offer. That also means contact is taken: don't use it for your own values.
Fields that not every contact has#
euromail won't send a template that prints a value it doesn't have, so nobody gets a greeting with a hole in it. That holds here too. If your template prints {{ contact.first_name }} and one contact has no first name, that one message fails with the reason attached, and the rest of the list still goes out. For any field you haven't filled in for everyone, add a fallback with default like in the example above.
What doesn't change#
A newsletter written as plain HTML goes out exactly as you wrote it. Only templates get filled in, so curly braces in a hand-written newsletter are left alone.
Everything you can use is listed in the contact lists guide.
Start sending GDPR-compliant email today
Create a free account and send your first email in minutes. Email storage and AI processing in Finland, with a DPA on every plan.