- Issue created by @philalawst
- πΊπΈUnited States john.oltman
The easiest approach is to use any of the node tokens in your email body. For example you can have an email subject such as "Thank you for registering for [node:title]" and the email body can include node field tokens like [node:field_something_or_other]. This assumes your host entities are always nodes, which seems likely based on your post. Another approach is to write a custom module that subscribes to the REGISTRATION_ALTER_MAIL event - it gets passed the host entity (presumably a node for your case), so you could do your own replacements or alterations to the mail body using custom logic in PHP. When the event is fired by the confirmation email it has a mail tag you can check, to be sure you are altering the correct email.
- π§πͺBelgium philalawst
thanks for your suggestions !!
I'll work with the first approach
Thanks
Automatically closed - issue fixed for 2 weeks with no activity.