Skip to main content

Add the contact name to your emails

Mailrelay offers various editors. In each one, you can add your subscribers' names to your newsletters to personalize them further.

With the name variable, each subscriber sees their own name in your newsletter, even if you send the same email to your whole list. You can use it in your email marketing campaigns with the free account.

Before you start

For the name to appear in the email:

Add the name with the Paste code editor

When adding a campaign, you can choose the Paste code editor.

You will find it in Campaigns > Campaigns: click Add and, in For advanced users, click Paste code.

New campaign window with the Paste code button marked in For advanced users

Adding a variable

When you import your contact list, you can include your subscribers' names. Then you can add them to your emails.

Edit the text block, place the cursor where you want the name and open the Variables drop-down. In the Subscriber section, choose Name.

Variables drop-down of the Paste code editor with the Name option of the Subscriber section marked

If you follow these steps correctly, the tag will be added to your text:

Text Hello {{ subscriber.name }} in the Paste code editor after inserting the name variable

And when you send the email campaign, this variable {{ subscriber.name }} will be replaced with the subscriber's name.

Add the name with the AI editor

To open this editor, in Campaigns > Campaigns, click Add and, in New editor with AI, click Create campaign.

Add a variable using the AI editor:

New campaign window with the Create campaign button of the New editor with AI marked

Click on "Variables" and search for the "Name" variable in the "Subscriber" section, for example. Click on it to select the name variable (you can use other variables as well).

Variables menu of the AI editor with the Name option of the Subscriber section marked

When you click the Name variable, it is added to the text as a tag:

Text block of the AI editor with Hello and the Name variable inserted as a tag

When you send the campaign, it is replaced with each subscriber's name.

Add the name to the subject

With the New editor with AI, you can also put the name in the subject of your newsletter, for example "Hello {{ subscriber.name }}":

  1. In the campaign, click Edit in the Subject section.
  2. Click Add variables and, in Subscriber, choose Name. The {{ subscriber.name }} variable is added to the subject.
    Subject with the name variable and the Add variables menu with the Name option marked
  3. Click Save.

In the Paste code editor, the Subject field has no variables button.

Check the name with a test email

Before your mass email sending, send a test to an email on your subscriber list that has the Name filled in. In the test email, the variable is replaced with that subscriber's name.

To send the test, see how to send a campaign.

Frequently asked questions

These are the most common questions about adding the contact name.

What happens if a subscriber has no name?

The variable is left empty. For example, if the subject is "Hello {{ subscriber.name }}, we have news", that subscriber receives "Hello , we have news".

Can I add other subscriber data?

Yes. In the same variables menu, the Subscriber section has other data, such as Email or Last name. To use them, and also your custom fields, see how to personalize the subject and content with variables.

Can I add the name with the free account?

Yes. You can use variables in both editors with the free account, the same one you use for your mailings and email marketing campaigns.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article