Skip to main content
Known Participant
April 4, 2018
Answered

Contact form stopped working [was: email forum]

  • April 4, 2018
  • 2 replies
  • 1916 views

Hey again, I didnt want to post anything else here cuz people have helped me so much already.

Ive been trying for hours to figure this out, I got it working before but now its suddenly not working

The email form doesn't work anymore This is supper annoying as this is how my clients reach me. I dont know how many lost emails I have

Anyway, the email form used to work, and now it just doesn't. It says the email has been sent successfully, but no email gets sent to my account.

Any ideas?

my site is: theosparks.co.uk

Thank you guys, your the best.

    This topic has been closed for replies.
    Correct answer WolfShade

    No I upload it to the server every time I test it.


    There should be error messages somewhere, if it truly is not working.  Error console in the browser (F12 for most browsers).  Error log in the Apache logs.  Something displayed in the browser screen.  Something indicating where the trouble is.

    Another thing that makes me curious is:  is the form located in the same folder as the action page (contact_me.php), or one level up?  But then if it were not just outside your "mail" folder, you'd be getting a "page not found" error, so I'm going to assume that the hierarchy is proper.

    V/r,

    ^ _ ^

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    April 4, 2018

    Contact your web host and ask them which form-to-email processing scripts you can use with your hosting plan.   Some hosts have scripts already installed on their servers that you can activate from your server's admin panel.    If your host doesn't support scripts,  you could use a service like Wufoo.com

    Nancy O'Shea— Product User & Community Expert
    Known Participant
    April 4, 2018

    Heya Im not sure if its a server issue, I had a problem with the email form ages ago and phoned them up and they said theres no reason it shouldn't work on their end, and that they cant help me with the code for my website.

    In the end I got it working and it had nothing to do with the server. I only noticed this isnt working after updating my website so I guess something I did messed something up.

    But thank you

    Community Expert
    April 4, 2018

    Looking at line 317 of your code, I see a form, but I don't see any action to your form.  Based on the comments I see in the code, you should have a form action defined that points to the URL of your PHP processing script.  There's likely just a simple javascript that is clearing the form and displaying the confirmation div so you see the message and the form clears, but this is why nothing is happening on the backend.

    Known Participant
    April 4, 2018

    Okay, thank you for looking over it for me.

    So do you know what form action and how to point it to the PHP script? I don't know how its disappeared, like I said it used to work.

    Community Expert
    April 4, 2018

    theos71901143  wrote

    Okay, thank you for looking over it for me.

    So do you know what form action and how to point it to the PHP script? I don't know how its disappeared, like I said it used to work.

    Look at line 315 of your code.  It appears you copied in the form code from somewhere because of the instructions there telling you to edit line 19 of your PHP document to tell the script where to send the email to.  Just make the form's action that PHP file.  I am assuming there is also somewhere in that document that will tell you where to have the form submitter redirected after it is complete.