I followed the tutorial at the following link:
But somehow I can not print the variable in the email header template.
Emailvar / registration.php:
Emailvar / etc / module.xml:
Emailvar / etc / events.xml:
Emailvar / Observer / Addvars.php:
getTransport(); $transport('CustomVariable1') = 'test1'; } }
And in the adminpanel I added this line to the header template (used in every email):
Do I miss something? I am in developer mode, the module is active and the caches have been deleted. The actual name of NameSpace is something else, but the structure is the same.