I need some assistance. About a decade ago I compiled a decent PHP mail script for website contact forms. Apparently, it has been rendered obsolete and now doesn’t work in some places. I need some help figuring out why. It’s attached as an ‘answer’ here apparently cuz I couldn’t figure out editing the code blocks instead of posting. The main problem with this one is it’s always falling to !mailSent. I added errors at the top as suggested but I’ve cleared the ones that showed. Nothing else is helping atm. Please let me know what you see! Thank you!
This occurred on a free hosting platform (000webhost) which stinks for many reasons. I guess they claimed they enforced PHP v8 across the board and that’s what broke my original. Funny though, I use the original form/script over at GoDaddy in multiple places and it still works fine there… Now migrating to another free host on this one (awardspace) which offers user ability to downgrade php from like V5 on. I just need to get something working…
2
Answers
I can't even figure out how to edit this post properly. So consider this an edit please. Hosting told me to create a domain email, which I did, then add it as the FROM header, which I did. I'm trying to post the original page & script here that I would much rather work than the first post.
And the script process2
Free hosting platform (000webhost) enforced PHP v8 across the board and that’s what broke your original code. Migrate to another free host