cancel
Showing results for 
Search instead for 
Did you mean: 

Custom email template, use user id.

Custom email template, use user id.

I want to use user id/name in custom emails, when i use

{{trans "% name," name = $ user.name}}

I get empty field.

Do I have to create custom variables for this data?

 

 

2 REPLIES 2

Re: Custom email template, use user id.

Hi @maciejmodl497d 

When you want to trigger this email?

for example for order.

use-custom-variables-in-transactional-email-in-magento-2/ 

Re: Custom email template, use user id.

Hi, i want to make a custom email template "Forgot Admin Password" when I use the default text in my new template, I see that the link has no user id number.

{{store url="admin/auth/resetpassword/" _query_id=$user.id _query_token=$user.rp_token _nosid=1}}