*SOLVED* Help me identify bad code? *SOLVED*

Issues related to forms.
Post Reply
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

*SOLVED* Help me identify bad code? *SOLVED*

Post 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
Last edited by etcbbu on Tue Jun 09, 2020 5:51 pm, edited 1 time in total.
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Help me identify bad code?

Post by Pablo »

Did you check with the web host why the emails are not being sent?
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: Help me identify bad code?

Post 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.
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: Help me identify bad code?

Post 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..?

?
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
User avatar
Pablo
 
Posts: 21716
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Help me identify bad code?

Post by Pablo »

Only your webhost can tell you why the emails are not sent.
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: Help me identify bad code?

Post 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.
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
Post Reply