I am using the Privatemsg and Rules module and I am trying to set up an automatically generated welcome message to new members registering on the site. This message will go into the new member's inbox.

I do not see a token that would allow the site's name to be the sender. All I see is the token for the logged in user. As expected, this doesn't trigger the message.

I have toyed with the [account] token. So when John creates an account, the message comes from John himself. This would be acceptable but it isn't consistent: Sometimes it works, sometimes it doesn't.

I know some tokens exist that are not always displayed. Does anyone have the name of the mysterious token? Or the magic to get this to work?

2 Answers 2


You could create an account for sending the messages and in rules, use direct input and enter its user id. That way, you could also see replies to welcome message.

  • This approach only works if the account is an administrator and creates a new account for a user (token is "logged-in-user".) But with a newcomer creating his own account, no message is sent. There isn't the possibility of assigning a certain user or the site as the sender.
    – user14666
    Feb 9, 2016 at 19:03
  • 1
    Did you click "Switch to Direct Input Mode" in the rules action for "Send message" and enter the uid of the sender? Feb 10, 2016 at 3:36
  • 1
    @NiallMurphy : even though it was not part of the question, you could take this a step further, using Menu Badges and its integration with the Privatemsg module ... to produce such "shiny" iOS style of (red) msg notification ... Aug 26, 2016 at 9:47
  • Good idea! I've never seen that module before.. Aug 26, 2016 at 10:00

Here's the site name token: [site:name]

Full list of tokens: https://www.drupal.org/node/390482

  • Unfortunately, this token is not accepted by privatemsg.
    – user14666
    Feb 9, 2016 at 4:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.