Hi @zebomfim,
This is an unusual scenario as the form email system is working when I test so I wonder if something else is interfering in some way.
Does the Check Mail plugin log emails that are sent or does it only send emails? I tend to use the Log Emails plugin to debug whether or not emails are being passed to WordPress.
If that doesn’t help at all, would it be possible for me to log into the site and take a look with a temporary user account? Feel free to get these details to me via email.
Cheers,
Phil
Hi, Phil, thanks for the answer, unfortunately, the email tests don’t work. It’s curious because sending test mails with Check & Log Email works well, and your suggestions Log Emails too, but not for Advanced Forms. It’s probably caused by the other plugins (Mail Poet and GiveWP), but I have tried locally deactivating both and the error persists.
I have created an account for you and sent the details via email.
Bests,
-
This reply was modified 1 year, 8 months ago by zebomfim.
Hi @zebomfim,
Very strange indeed. I don’t seem to be able to access the site to test. Would you mind emailing me directly via our support page so we can share credentials privately?
I may just need to set up a local clone of the site to debug but will see how we go when I can take a good look.
Cheers
Phil
Hi, Phil, I have already emailed to support@hookturn.io (on 9 February), but I will do it again now.
The mail subject is “Give credentials to solve notification in Advanced Fields“
Cheers,
Hi @zebomfim,
I’ve manage to set up a fully functioning local copy of the website and after quite a bit of time, I’ve manage to track down the source of the problem. There are actually two issues to fix, both of which are the way in which this site has been configured.
First up, in functions.php
, there is a function called register_forms()
which is being hooked to the af/register_forms
hook. This should be deactivated as it’s settings are interfering with the form’s admin panel settings and breaking the form headers. If you wish to use PHP defined forms, it would be wise to update the PHP every time the form is modified in the database. My suggestion to you is to just rely on forms in the database.
Second, in the form’s email From field, please remove the quotes either side of the setting there. The quotes are causing PHPMailer to invalidate the from address and this is preventing emails from sending.
One other suggestion I have is that you avoid sending emails from the email address submitted with the form and instead use a ‘Reply-To’ header. There is a snippet which demonstrates how to do so here. The reason I suggest this is because some emails may end up being rejected based on the SPF setting on the senders domain. It’s much more reliable to use the websites admin address (or an address with the website domain) and rely on the Reply-To header.
Hi Phil, thanks for your perfect job. I guess that I’ve misunderstood the necessity to register the form in functions.php and that cases the first issue.
Now, all works fine. Great plugin and great attention.
Thank you!