formtools / core

The Form Tools Core.
https://formtools.org
207 stars 78 forks source link

Successful form submission doesn't send email #693

Open dwaisman opened 4 years ago

dwaisman commented 4 years ago

Hello all, I've successfully configured both the external form with Form Tools and the Swift Mailer module to use SMTP. I'm able to successfully send test emails (Swift email test and the Form's email test with all form fields) Yet, once a form is submitted and received inside Form Tools, no email is sent. Email template inside form is configured to have even trigger check "on form submission"

Open to any suggestions to solve this issue. Thank you all for your help

kubajal commented 4 years ago

Hi, that's funny, two days ago I had the same problem. First things first, please check if your e-mails land in the spam folder (most probably you have done it already I guess).

If the e-mails are not in the spam folder, then have you changed/added/removed any fields in the form since creation of the e-mail template? Apparently, e-mail templates fail without any kind of warning/error message if the field they are trying to insert does not exist / has different type than they expect. Sending test e-mails with old test submission might be succesful because all fields required by the e-mail template exist in them. But new submissions might not get sent because they don't have required fields (I'm not 100% sure though). Anyway, what helped in my case was to recreate the e-mail form from the scratch.

If that doesn't help I recommend checking your SMTP logs of the e-mail address with which you are trying to send emails from. Do you have SSH access to your FormTools installation? If not, do you use any software like DirectAdmin to manage your hosting? Please check if the e-mails are logged at all.

dwaisman commented 4 years ago

Kubajal, thank you very much for your answer. No email inside spam folder. I have not changed the fields on the form after it was created. Just to test Form Tools, I have added only text inside the email template (no form fields) to see if the email at least was sent. It didn't work. Unfortunately I don't have access to the server's SMTP log. My hosting has Cpanel. Again, the test emails work fine, but no emails once the form is submitted and received by Form Tools. I have checked, and re-checked settings everywhere. I don't seem to be able to find a solution for this. Once again thank you for any ideas.

kubajal commented 4 years ago

Hi, unfortunately I don't know CPanel but I checked its documentation and there is probably the possibility to see what we are looking for, have a look at this: https://documentation.cpanel.net/display/82Docs/Track+Delivery#

Can you please try to fill out the form in your Formtools and then look for an entry for the sent e-mail in "Track Delivery" in CPanel? Do you see a corresponding entry in there? You might also send an e-mail for comparison from any different e-mail address that works (just to make sure that you actually can see any e-mails sent).

If you are not able to access "Track Delivery" then please contact your hosting company if they can guide you in debugging it. To be honest it's hard to tell anything without the e-mails logs. You could for example fill out the form and then ask them what entries do they see around the time you made the submission. If there are no entries then that could mean there is a problem on your side (with your installation). If not, then maybe the problem is on their side (e-mails get lost on their way to reciepent)? Again, it's hard to tell what might be the cause without the logs because apparently you have configured your e-mail template correctly if you can receive test e-mails.

radasys commented 3 years ago

Hi, we had the same issue today.

Using the Form Backup function, we created a form using an existing form as template. Then, test worked but we did not receive any e-mail on submission.

After deleting and recreating the email template, it worked again.