Forum Moderators: not2easy

Message Too Old, No Replies

PHP Mailer Email Form Issues

         

0verdose

2:45 pm on Oct 13, 2017 (gmt 0)

10+ Year Member



Hey crew, hope you are well - haven't logged on in a while...

Am tinkering with a new site and having issues with the email form.

Form works fine with same config on a different website, however on this site in question I'm getting PHP errors causing the site fall over this only seems to happen on iphone/mobile for some reason. Seems to work kind of OK on browser.

Initially on browser, when I click submit, an image loading sign appears and doesn't forward to thanks page although email sends fine.

Tried a work-around by an on-screen alert to say message sent instead. Again seems to work fine on lappy but erroring on iphone.

Trying to find work arounds and tweaks, can I host the php file / PHP Mailer pack on a different website? Will that cause potential issues with spam filters if domain and email not the same?

Or could there be a piece of JS or something that's pushing my php script to load on page load, rather than on submit? And if so, what kind of code would this look like?

Confused.com

0verdose

3:08 pm on Oct 13, 2017 (gmt 0)

10+ Year Member



my web host mentioned something about config php.ini file, but I wouldn't know where to start with that...

lucy24

8:46 pm on Oct 13, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



my web host mentioned something about config php.ini file
I think web hosts always do that. Is it your own server? On shared hosting you don't have access to php.ini, though you may be able to get at phprc (in your .php directory, one for each version of php the site has ever used).

Do you have control over what php version you're using? That's generally the first thing to check.

robzilla

9:54 pm on Oct 13, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Did you check your error logs?

0verdose

12:13 am on Oct 14, 2017 (gmt 0)

10+ Year Member



thanks guys fixed issue now, was something up with the .htacess in the end...

I think I was getting in a muddle with php / js... but work around seem to have been a success...