Load original email content via hook_mail_alter
I’m hooking into hook_mail_alter
to make an amendment to outgoing emails before they go, but by the time they are loaded by hook_mail_alter, any tokens/replacements have already taken place, but I was wondering if it’s possible to use any of the information from within the email to retrieve the original ‘token-ised’ version so that I can pass those separately
Is that possible?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.