Hello, Minesh asked me to take a look at this ticket and try to help. I understand you have a Form here that registers new Users:
hidden link
The Form can be found in wp-admin here:
hidden link
Upon registration, the User is redirected to the Page "Thanks for Signing Up!" here:
hidden link
I tested everything out by submitting the Form to create a new User. I added information in all the fields, then completed the RECAPTCHA validation. When I submitted the Form, I was redirected to the "Thanks for signing up!" page as expected. The User "toolset-test-2" was created successfully, but I used an invalid email address to register, so I could not verify the email notification was working as expected.
To verify the notification is working as expected, I submitted the Form once again using a valid email address. I did not receive a notification, so I checked the notification settings. I made two adjustments (see the screenshot for more details):
- I changed the notification trigger from "When submitting the form with payment details" to "When a new user is created by this form". This is the appropriate trigger, since the Form contains no payment details. The payment details option should only be used in conjunction with WooCommerce Forms.
- I changed the recipients information to include the First Name and Last Name fields.
I also temporarily enabled the WP Mail Logging plugin. This plugin monitors the WordPress email queue function wp_mail and keeps a log of all emails sent by the site. This should help determine whether the system attempted to send an email but failed for some reason, or if the system sent an email successfully but it was blocked by the server because of a spam filter, another security system, etc.
Once again I submitted the Form and a new User was successfully created. This time, I received the email notification. I will send you a screenshot of that email in a private message in just a moment.
So after those two adjustments in the email notification, everything seems to be working as expected for me. The User is registered successfully, redirection happens as expected, and the automatic notification is sent as expected.
Can you provide more details about your testing method and the results? For example:
- Are you able to see the RECAPTCHA validation and complete the RECAPTCHA puzzle successfully?
- What happens when you attempt to submit the Form - is an error message displayed? Are there any JavaScript errors in the browser console? Are you redirected to a different URL? What is the final destination URL after you submit the Form?
- I kept the WP Mail Logging plugin active for testing purposes. After you submit the Form, is an email notification added in the WP Mail Log? You can see find mail log here: /wp-admin/tools.php?page=wpml_plugin_log. Anytime an email is triggered using the wp_mail function, you should see a copy of the email appear here in the log. For example, you can now see the notification that was triggered when I submitted the User toolset-test-5.
- Please take a screenshot of the Form contents just before you submit the Form and include that screenshot in your next reply. I will try to create a User using the same registration details to see if I can replicate the problem you are experiencing.