We want to contact our registered customers in the newsletter confirmation mail with their names. Every template we tried to configure the names weren't shown in the mails. Anybody out there who's able to tell why the first- and lastnames in the newsletter mails aren't shown?


We tried using the following variables from the documentation that doesn't work:

{{htmlescape var=$customer.name}}

{{var customer.name}}

{{var customer.firstname}} {{var customer.lastname}}

3 Answers 3


Dennis,Magento do not save customer firstname and last name in newsletter model so ,you can not get customer name in email template

You need customization for this



  • amitbera, can you put relevant codes along with this answer and notify questioner to accept this answer. As you already no, link only answers is not good. However you deserve +1 for the very fist point that you have shared through your answer Nov 8, 2014 at 6:17
  • rakesh .. i am on magestackday.work on answer section.i will reply later.....
    – Amit Bera
    Nov 8, 2014 at 6:19
  • me too bro. this is a part of filtering. By the buy this time you forgot my real name. It's Rajeev :-) Nov 8, 2014 at 6:20
  • Sorry ... Rajeev..:)
    – Amit Bera
    Nov 8, 2014 at 6:21

For display register customer first name add the {{var customer.firstname}} variable in your email template as you want display. It is working for me only for register customers not for guest user.


you can try this to get name of customer in Newsletter

{{trans "Hello %customer_name," customer_name=$customer.name}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.