-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact Form Problem and solution #215
Comments
formspree needs to have the so for example
needs to be
after that thought it works great, thanks for the tip. |
Keeping this open since it's an important way around using the PHP mailer that is included with this theme. If you're trying to use the PHP mailer and it's not working after you upload it to your web server, it could be a problem that is outlined here on this post on StackOverflow https://stackoverflow.com/questions/24644436/php-mail-function-doesnt-complete-sending-of-e-mail If your server doesn't support sending mail, for example, if you're hosting your site on GitHub Pages, then Formspree is an excellent solution. |
Hello! I came up with this issue today and fixed it by changing the code on line #23 of And now the form works in my server. |
It indeed works. I tested it too. Thanks a lot. So many people missed this simple error. |
Would be useful to change the code in the original issue, are these editable? |
At this point in time, the free tier for Formspree is a lot more limited than it once was. There are a lot of ways to add forms to static sites at this point in time, and I am considering dropping the 'working form functionality' from the theme all together in the upcoming Bootstrap 5 compatible version. The PHP scripts with jQuery validation is becoming more and more antiquated, and it's a difficult thing to provide troubleshooting and support for. Instead we may set up an article or guide on the various techniques one could use to add functionality to a form. |
Have you thought of mailChimp ? |
I was having a lot of issues getting the formspree form to work. I needed to make a formspree account (free). Then cope the end point HTML code and implant in the action section however, I was only updating the index file. There were about 3 separate files including some or all portions of the contact form that needed to be updated and committed with intended code for it work. Hopefully this helps some other novice that is banging their head against a wall currently. |
Either using formspree. Or you can create your own smtp service powered by Nodemailer/NodeJS or similar in the backend to run on a free cloud hosting server like Heroku/Render to proxy off your nominated free SMTP server of your choice ie Hotmail, Gmail, Yahoo etc. And all you can do with your contact form is to point the form submit endpoint to your NodeJS smtp service to run it. You're good to go. You'll learn more to setup this way. That's how I accomplish mine after migrating from legacy freelancer page to the new one recently. |
I saw that there were a lot of comments on the
contact.php
form and not being able to submit. I also had this problem and after a handful of hours trying to find a solution, I went ahead and just went with formspree.io instead of thecontact.php
.For future developers using this theme who encounter this problem. Just comment out the existing form and then add this. Once you've taken the 5 minutes to verify with formspree, this should work.
The text was updated successfully, but these errors were encountered: