User login

Send an e-mail to an administrator when a new user registers on a Drupal 7 site

10:13 benjamin-agaric: Drupal 7 - the simplest way to have an administrator e-mailed when a new user signs up? Can't find any core setting and no trigger does it either? Seems we should have a way to get this functionality short of Rules module... thoughs?
10:22 benjamin-agaric: Answer: it can be done through Drupal core- an advanced action simply has to be configured first at admin/config/system/actions/configure and then back to trigger configuration.
10:22 benjamin-agaric: So the remaining question is not about Drupal but about me: why did i have to look at the code to figure this out? :-P

in the context of making an e-mail to send to a user. The action is "send an e-mail". It has no idea about what the trigger might be, which affects the tokens that will be available, and there is no master list of placeholders available in the UI. So the administrator is pretty much flying blind.
10:50 benjamin-agaric: and the tokens [user:name] and [user:mail] were not converted.
10:51 benjamin-agaric: so for sending an e-mail when a new user signs up... yes, token is completely broken.

Issue filed, and patch provided:
No user account tokens are replaced for the user account created trigger


Same problem in D6? Advanced Actions - Send email - Only global variables work - System Module

The action itself:

Token, expanded and improved, lives on in contrib:

Searched words: 
drupal 7 send e-mail action


Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.