I want to set customer first name on transactions email after create new customer account in magento2

I tried this line but that did not work

{{trans "Dear %name," name=$Firstname}}

1 Answer 1


try this

For Orders email: {{var order.getCustomerFirstname()}}
For Customers email: {{var customer.firstname}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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