Hi im wondering if its possible to get token support for the mail sent to the users reviving the login mail.

Im having custom fields for the user first name and last name and would like to use them in the mail sent to the users.

And the tokens showing up dosn't seam to work :)
for example.

[user:field_firstname] [user:field_lastname],

instead of the !username, !site, !password, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url. (or letting them extend the token module).

Comments

danielb’s picture

Category: feature » bug
Status: Closed (won't fix) » Postponed (maintainer needs more info)

--

danielb’s picture

Category: bug » feature
Status: Postponed (maintainer needs more info) » Closed (won't fix)

--

Strutsagget’s picture

Category: bug » feature
Status: Active » Closed (won't fix)

No need for the manners... First of token is the way for replacing strings in Drupal. The fields and their name were just an example and implementing a general token api solves every field a user can have and all kinds of information ever needed in the mail.

And a simple I don't feel like implementing it is enough. It was just a question. Sorry for asking...

danielb’s picture

--

danielb’s picture

Category: feature » bug
Status: Closed (won't fix) » Active

holy shit I completely misunderstood
you are totally right, the correct way in Drupal 7 is to use tokens
I apologise for my meltdown

danielb’s picture

Status: Active » Closed (fixed)

I've committed a fix and update script. Deeply sorry for my original reaction!

Strutsagget’s picture

Works like a charm! Thx alot and I apologize for putting the original request in wrong category.

Thx again I really love your modules!

Strutsagget’s picture

Issue summary: View changes

spelling...