I am using CCK to create a content type of "Issue" that is then assigned to a user to work on using workflow, actions, triggers etc. In CCK I have created a custom field variable called 'field_assigned_to'. When the 'Issue' is assigned to a user, that user will receive an email telling them that it has been assigned to them. I am using a send tokenized email action, the problem is that there is no placeholder token for email associated with the 'field_assigned_to' variable, the available placeholders are, [field_assigned_to-uid], [field_assigned_to-name], [field_assigned_to-link],
[field_assigned_to-path] and [field_assigned_to-url], I need to have the email address associated with field_assigned_to-uid in order to populate the 'To' textbox on the form when creating the tokenized email. Any ideas on how to get it into that textbox?
Comments
Comment #1
dave reidNode & user reference tokens are provided by CCK.module, not token.module. I'll transfer your issue to the cck issue queue where someone better handled to answer your request can reply.
Comment #2
puddyglumI had this exact same problem, modified the code of modules/cck/includes/content.token.inc:
lines I added:
$tokens['user reference']['mail'] = t("E-mail address of the referenced user.");So the userreference_token_list() looks like this now:
Comment #3
puddyglumI think this should be updated, because e-mail is VERY important to have
Comment #4
J3 commentedExact same problem for me. Anyone get an update for this?
Comment #5
marcp commentedDuplicate of #272949: Token for mail address of user in CCK user reference field.