Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I got a request via e-mail to provide support in autoresponder for tokens from the token module.
If you have any questions on how to implement token please let me know. There is a video of a presentation I gave on the topic http://dc2009.drupalcon.org/session/token-little-api-could and also the token API.txt has some good advice.
Comments
Comment #1
keyzo CreditAttribution: keyzo commentedHi,
Good video, I have the same problem where I want to include the Username within emails of the people who has subscribed to the autoresponder module.
Is this possible? I've tried several things but I can't seem to get it working, does anybody have an advise to help me?
Much Appreciated.
Shane
Comment #2
keyzo CreditAttribution: keyzo commentedAlong with the help of a great guy on StackOverflow.com we managed to solve my issues here is the article
http://stackoverflow.com/questions/3032807/drupal-autoresponder-with-tok...
This was the final solution;
Token replacement in the autoresponder_mail() function by inserting the following code before the preparation of the plain text body (before line 392 in the 6.x-1.0-alpha1 release):
Thanks for the help Henrik!
Shane
Comment #3
gregglesThanks for your comment and for helping make this a better module. Could you provide this as a patch?