I am trying to: Send an automatic e-mail notification after a new user is created using a toolset user form. The test mail is working correct, but no mail is sent after creating a new user.
Link to a page where the issue can be seen: hidden link
I expected to see: a mail in my mailbox
Instead, I got: Nothing ;-( also checked my spam folder.
Thank you for waiting while I performed some tests.
While I can see the issue with form's email notification on your website, I couldn't reproduce this on my own website, despite setting up the similar user form and email notifications.
This suggests that the issue is specific to your website only and for further troubleshooting, I'll suggest the following steps:
2. In case there are no errors or warnings, please test the form notifications again, after temporarily disabling all plugins ( other than Toolset ) and with a default WordPress theme like Twenty Nineteen. This will help in narrowing down to any possible third-party code conflict.
3. If the issue still persists, we'll need a clone/snapshot of your website, to get to the bottom of this. Here is a guide on how to share the website's clone/snapshot: https://toolset.com/faq/provide-supporters-copy-site/
Please let me know how it goes and I've set your next reply as private.
If this is a server-related issue because installing the duplicate on another of your own servers fixes the issue, then it won't help for me to install the duplicator on my own server.
Reading through the above discussion with Waqar, it doesn't look like you add a mail logging plugin to track outgoing emails.
That means you can isolate whether there is a problem generating/sending the emails or whether the problem is with delivery.
Toolset notifications are just built on top of the standard WordPress wp_mail function.
If you install that plugin, try to generate a notification, then check the mail logs provided by the plugin, if the email appears in the list of sent emails then Toolset succeeded in generating and sending the email, and the problem therefore lies elsewhere.
I installed the plugin you mentioned. Sending a testmail from within the form editor works and is logged, as expected.
Using the form however doesn't send nor log the mail. It is a bit confusing to me. Hope you have some ideas left.
One more thing before going further, given that it only occurs on a particular server, is can you check the debug logs for any PHP warnings or errors that point to a problem?
If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:
That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try submitting the form again and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.
At this moment I don't have FTP credentials (due to vacation) so I have to hold this issue for a while. I get back to you as soon I can safely change wp-config.