Hi,

I am trying to use the token [user:name:raw] in my welcome email to new users [as configured in /people/account settings] and receive the error message:

"The Body is using the following invalid tokens: [user:name:raw]."

I have successfully tried many of the other tokens without problem, can anyone explain why this token is unavailable to me? It is present in the hierarchy list and I am picking by clicking from the UI, so is not a typo issue.

I don't want to use the standard [user:name] token as this is subject to an output modification in my system in hook_username_alter which I would like to avoid in my welcome email.

I am using core 7.23

Thanks for any help,
Andy

Comments

ChrisValentine’s picture

I don't see [user:name:raw] anywhere in the list of tokens, so I don't think its valid.

Dave Reid’s picture

Are you sure you don't meant to be using [user:name-raw] instead of [user:name:raw] (dash instead of a colon in-between name and raw)?