Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

send mail on user registration

edited March 2013 in Framework

I would like to send an email for each user registration.

What is the most proper place, where to put the code?

Thanks.

Comments

  • Your best bet is to write a custom user signup form, and tell the user app to use it instead of the default one. To do this, copy the file apps/user/handlers/signup.php into your own app (e.g., apps/mysite/handlers/signup.php) and make your edits there.

    Also, in the file apps/user/conf/config.php find the [Custom Handlers] section and change the user/signup to point to your custom handler:

    user/signup = mysite/signup
    

    This will replace Elefant's own signup form with your custom one.

  • I followed the instructions but after the change the signup page is no longer available

    neither user/signup

    neither mysite/signup

    Overwriting apps/user/handlers/signup.php without modifying custom handlers in apps/user/conf/config.php everything seems ok.

    Thanks.

  • If you turn on the debug and display_errors settings in the global config, there's probably a PHP error resulting from the file moving into a new app.

    That may help track the problem down and avoid having to modify the original source files (since that makes it harder to upgrade later).

Sign In or Register to comment.