BookSense Posted April 15, 2023 Share Posted April 15, 2023 Hi I have been trying for days to add a contact form to my website but no matter what I have tried the script either crashes or fails to email me the message. Could this be a server hosting issue that needs addressing? Thanks Owen Quote Link to comment Share on other sites More sharing options...
Strider64 Posted April 15, 2023 Share Posted April 15, 2023 (edited) I don't know exactly it is called, but sometimes you have to give your ISP `permission` to use certain email clients. I know Gmail for example does and I had to change some settings on my email server portion. Edited April 15, 2023 by Strider64 Quote Link to comment Share on other sites More sharing options...
ginerjm Posted April 15, 2023 Share Posted April 15, 2023 Have to ask. Do you have error reporting enabled in this script so you can see any error messages? error_reporting(E_ALL); ini_set('display_errors', '1'); Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted April 15, 2023 Share Posted April 15, 2023 (edited) your web hosting probably has a Frequently Ask Question section that lists any requirements and a code example to send emails. you would need to post any code you have tried to get any help with what could be wrong with it. code examples you find on the web as usually lacking in security, lacking a good user experience, are filled with unnecessary typing, are missing error handling and validation logic that would get them to tell you (display/log) why they aren't working, and most, incorrectly, are using the email address that was entered by the visitor as the From: email address (these emails are NOT being sent from the email address that was entered, they are being sent from the mail server at your web hosting and the Form: email address must use a domain name that is either at your web hosting or is tracible back to the ip address of the sending mail server through dns records.) Edited April 15, 2023 by mac_gyver Quote Link to comment Share on other sites More sharing options...
ginerjm Posted April 19, 2023 Share Posted April 19, 2023 Why should we click on something that we have no idea what it is? Quote Link to comment Share on other sites More sharing options...
rimsha Posted June 2, 2023 Share Posted June 2, 2023 The issue with your contact form could potentially be related to your server hosting. Here are some steps to address the problem: Check server requirements. Verify email settings. Test the script independently. Review error messages. Implement debugging and error handling. Consider server-side limitations. Explore alternative solutions if needed. Ensure you have backups of your website and files before making any changes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.