We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14617
    • 47 Posts
    Hi

    Is it possible to make webloginpe send an email to the administrator notifying them that a new user has registered?

    Jonas
      • 10525
      • 247 Posts
      Yes Jonas,

      call the snippet like this (simplified for this example):
      [!WebLoginPE? &type=`register` &notify=`admin'[email protected]`!]

      The &notify field holds the email addres that you want the notification sent to. You can control the layout and content of the email with the &notifyTpl field, and the subject line with the &notifySubject field. These are explained at the bottom of the Views (Templates) page in the WebLoginPE docs.

      Hope that’s what you needed.

      G
        • 14617
        • 47 Posts
        Perfect. Just what I was looking for. Thank you so much.

        One more question: Is it possible to require a user to be authorized by the admin before his user is activated? If you use the ’verify’ method it only verifies their email...
          • 10525
          • 247 Posts
          Hmm.. you might have got me there.

          I have to do something pretty similar quite soon and I was assuming that I would have to create a new database field, called say "active", and have that default to "0" or "no" on registration. Then it would be up to the Admin, after he/she received the registration notification email, to go in and activate the new user. This could be done by adding "Active?: yes/no" radio buttons into a custom version of $wlpeUsersTpl (using WLPE in a manager page with &type=manage and &usersList).

          I haven’t yet investigated how far I can do this using standard WLPE params and what will require tweaking of the snippet code.

          Anyone else able to offer a neat description of how to do this?

          Cheers,

          G