I can't seem to figure out why the post-registration email is not including ANY tokens that are listed. The email is as such:

"An account was created for you after your order at [site_name].

You may now log in by clicking this link or copying and pasting it to your browser:

[user:one-time-login-url]

This link can only be used once to log in and will lead you to a page where you can set your password.

After setting your password, you will be able to log in at [site:login-url] in the future using:

username: [current-user:name]

password: Your password"

The setup is:
Commerce email 7.x-2.x-dev
Email 7.x-1.3
Html Mail 7.x-2.65
Entity Tokens 7.x-1.6
Token (token) 7.x-1.6
Variable Email 7.x-1.0-alpha1+3-dev+Patch
Variable 7.x-2.5

Any input would be GREATLY appreciated!

Comments

Dave Reid’s picture

Project: Token » Commerce Email
Version: 7.x-1.6 » 7.x-2.x-dev
Component: Token Actions » Code
Category: Support request » Feature request

Commerce Email will have to manually add support for insecure tokens in email messages:

To use these tokens, you need to supply user_mail_tokens as the callback to token_replace(), as show in _user_mail_text():

return token_replace($text, $variables, array('language' => $language, 'callback' => 'user_mail_tokens', 'sanitize' => FALSE, 'clear' => TRUE));
Dave Reid’s picture

rszrama’s picture

Status: Active » Closed (outdated)