• Resolved Rajeev Rajan

    (@rajeevrf)


    Hi,

    We have created a Country field in the user registration form. We would like to send Admin notification emails to a different email address based on the Country value selected in the registration form.

    Can you let us know how we can do this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Paolo

    (@paoltaia)

    Hi,

    I’m sorry, but there is no way to do that without customization.

    This is considered beyond support.

    Thanks,

    Thread Starter Rajeev Rajan

    (@rajeevrf)

    Can you let me know which hook can be used for this?

    Plugin Support alexrollin

    (@alexrollin)

    Hello,

    You can disable our default email sent to admin from UsersWP->Emails->Admin Emails->New account registration and use ‘uwp_after_process_register’ or ‘uwp_after_custom_fields_save’ hook to add your own code where you will get all form data and user ID of new user registered.

    Thread Starter Rajeev Rajan

    (@rajeevrf)

    Hi alexrollin,

    We used this “uwp_after_process_register” hook to get the details of the form fields. Is there a way to send email using uwp_send_email_to($to, $email_name, $email_vars, $is_admin) function inside this “uwp_after_process_register” hook?

    What are the details that should be passed to this function uwp_send_email_to() ?

    Can you provide details on what needs to be passed in below variables?

    $email_name, $email_vars, $is_admin

    • This reply was modified 2 years, 4 months ago by Rajeev Rajan.
    Thread Starter Rajeev Rajan

    (@rajeevrf)

    @alexrollin ,

    Can you answer this?

    Plugin Author Stiofan

    (@stiofansisland)

    Hi @rajeevrf,

    Sorry for the delay on this, it’s still marked as “resolved” so our team don’t get a daily notification for it.

    I’m a little confused as “uwp_after_process_register” is a filter not a function.
    If you can explain what you want to do I will tell you how to do it.

    Thanks,

    Stiofan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change Admin Email address based on field selected by user in Registration form’ is closed to new replies.