Page 1 of 1
*SOLVED* Help me identify bad code? *SOLVED*
Posted: Thu Jun 04, 2020 5:37 pm
by etcbbu
Hi all, got a Contact form on this page:
https://phillipsflooring.com/contactus.php
that is attempting to send to an e-mail address on our same server, there, with the @phillipsflooring.com extension. But e-mails are not actually reaching the e-mail box. Test it, even if you fill out the form on that page, the page will successfully seem to submit, because you get taken to the "success" page as if it worked.
Can you see anything else that may be working against it that I'm missing..?
-etcbbu
Re: Help me identify bad code?
Posted: Thu Jun 04, 2020 6:12 pm
by Pablo
Did you check with the web host why the emails are not being sent?
Re: Help me identify bad code?
Posted: Fri Jun 05, 2020 3:32 pm
by etcbbu
Waiting for a response from them; I just figured I'd check to see if there's a gaping-hole, or php version, or something, that I'm missing.
Re: Help me identify bad code?
Posted: Mon Jun 08, 2020 12:59 pm
by etcbbu
Could it be that I've also inserted some custom code for that Online LiveChat code snippet that you see pop up on the bottom of the screen, on the
https://www.phillipsflooring.com/contactus.php page?
The server wrote me back and said to go into the mail-settings for that inbox and whitelist a certain auto-responder e-mail. So, I did that; then I tried filling out the form again, and the problem is still happening. I'm getting the success screen, but the e-mail is not reaching the contact inbox.
Would using that newer-version of CAPTCHA help this, you think..?
?
Re: Help me identify bad code?
Posted: Mon Jun 08, 2020 1:10 pm
by Pablo
Only your webhost can tell you why the emails are not sent.
Re: Help me identify bad code?
Posted: Tue Jun 09, 2020 5:51 pm
by etcbbu
Well, got it fixed. Somehow, the
Form Properties >> General >> Advanced >> Advanced Form Properties >> Miscellaneous
Code: Select all
"Set envelope-from address for PHP mail() function with the -f option"
got ticked. And I do not see *HOW*, as I rarely if ever dig in to this level of detail on these settings of Contact forms. And even if I did, I don't even know what any of those functions/server settings *mean*, much less would want to *change them*.
So for my own education purposes: can someone please explain to me what this setting is talking about; including explaining the -f option, and how it works with PHP mail() function, and why some servers, I guess, may need it..? I'm just curious and would like to learn.