1. Why are you sending an email on the "preHook"? preHooks run *before* a form is processed. Wouldn’t you want this in a postHook?
2. The activation URL is not sent in the postHook parameters, since it’s only generated if &activation=`1`. I’m guessing you have that off. You can file a Feature Request and I can look into getting that moved outside of that so that a postHook could have it.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
Okay, so my approach is secondary to the fact that I am learning the Login package. My customer would like to receive an email (with an activation link) when an end user registers and then based on the user info easily approve (or not), that user, without having to go to the site and login.
So, following the registration process am I able to send an email with an activation link to a designated email address, not the email field in the form?
P.S. I’ve released Login 1.4.0-rc1 that allows you to set an &activationEmail property to Register that will send activation emails there instead of to the newly registered user’s email.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
You rock Shaun!!