%user-mail token does not work in recipient field
| Project: | Actions token email |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hello,
Thanks for this module - it has enabled me to easily use 'tokened email' for the flag module.
Just one problem though:
While "%author" in the recipient field sends mails to the node author but "%user-mail" in the recipient field fails to generate the mail to the currently logged in user.
Although, in the body field & subject line '%user-mail' reveals the currently logged in users email id.
Also, all other tokens listed in the "Send tokened e-mail" work fine.
I'm able to send out an email as long as the address in the recipient bar in entered as a static email id (e.g. yahoo@gmail.com) or is entered as '%author'
If '%user-mail' is the wrong token for the currently logged in user, then why does this same token work fine in the subject line and the body fields.
I've got 'Actions', 'Token' & 'Actions Token E-mail' modules that I'm using to "Send tokened e-mail" through 'Flag Actions'.
I raised an issue report at the flag module, and have been directed to seek assistance here requesting to enable tokens in the 'recipient' field.
Please help

#1
subscribing....
#2
I encountered the same problem, when I check my log entries, it shows
action 11/24/2008 - 00:19 Sent email to %field_recipients-email administrator
%field_recipients-emai is my email cck field, I believe the token doesn't work.
#3
further more, I try to set a static email to recipient field and put %field_recipients-email in the Message box, I can receive the email, and the email body show the email I put in the field_recipients-email field.
So, it seems the tokens works in message field, but not in receive field.
Thanks and best regards.
#4
Just found we may need add below code at line 125 on actions_token_email.module.
$recipient = token_replace($context['recipient'], 'node', $node, '%', '');still need to fix the mutil email problem.