Page 1 of 1

Contact form not sending mail or loading "sucess/error" ***SOLVED***pages

Posted: Mon May 13, 2024 3:28 pm
by Fredl
I have been trying to get the simple contact form I built using the wizard to work. I did set the page type to .php and enabled form on the layout grid's properties. This is for a MS 365 email provided by Godaddy, after reading the Faq I changed the processor to SMTP, enabled SMTP for the email account on the GD account mail settings page, used their suggested values for SMTP host etc. Before I made these changes the success page would load upon hitting "submit"despite no mail being sent, but now i don't get a sucess or error page, just a progress spinner that never stops. Please help me get this form working, I am done with everything else on this site, thanks!

Project files:
***,Removed for security of your Host***

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 4:30 pm
by wwonderfull
Fredl wrote: Mon May 13, 2024 3:28 pm I have been trying to get the simple contact form I built using the wizard to work. I did set the page type to .php and enabled form on the layout grid's properties. This is for a MS 365 email provided by Godaddy, after reading the Faq I changed the processor to SMTP, enabled SMTP for the email account on the GD account mail settings page, used their suggested values for SMTP host etc. Before I made these changes the success page would load upon hitting "submit"despite no mail being sent, but now i don't get a sucess or error page, just a progress spinner that never stops. Please help me get this form working, I am done with everything else on this site, thanks!

Project files:
***Removed for security***
Caution: Please remove sensitive information's such as username password from your SMTP demo if you are not aware of it. And also you might need to change it as it has been disclosed.

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 4:36 pm
by wwonderfull
Apart from that your form needs some validation before being submitted or else how would the server know someone has filled the form so from client sided JavaScript validation to make sure data has proper input and also put Accept character set to UFT-8 and Target to _blank. If the data is successfully submitted it should show the submit page and if it does not, then from your server you should check the php error log. Sometimes it may be your server's configuration issue or most likely because of the form not being structured correctly.

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 4:42 pm
by BaconFries
I have removed the download for reasons posted by wwonderfull...please do not include any information as you have!!

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 4:47 pm
by Pablo
If the emails kare not sent by the server then you will need to contact your webhost and ask them why it is not sent.
Based on their feedback you can then update your form settings.

See also the FAQ:
viewtopic.php?f=10&t=32967

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 5:26 pm
by Fredl
wwonderfull wrote: Mon May 13, 2024 4:30 pm
Fredl wrote: Mon May 13, 2024 3:28 pm I have been trying to get the simple contact form I built using the wizard to work. I did set the page type to .php and enabled form on the layout grid's properties. This is for a MS 365 email provided by Godaddy, after reading the Faq I changed the processor to SMTP, enabled SMTP for the email account on the GD account mail settings page, used their suggested values for SMTP host etc. Before I made these changes the success page would load upon hitting "submit"despite no mail being sent, but now i don't get a sucess or error page, just a progress spinner that never stops. Please help me get this form working, I am done with everything else on this site, thanks!

Project files:
***Removed for security***
Caution: Please remove sensitive information's such as username password from your SMTP demo if you are not aware of it. And also you might need to change it as it has been disclosed.
Thanks, I already changed the PW, I wanted to include the SMTP settings since that was the mailer I chose to use per the Faq suggestions.

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 5:37 pm
by Fredl
wwonderfull wrote: Mon May 13, 2024 4:36 pm Apart from that your form needs some validation before being submitted or else how would the server know someone has filled the form so from client sided JavaScript validation to make sure data has proper input and also put Accept character set to UFT-8 and Target to _blank. If the data is successfully submitted it should show the submit page and if it does not, then from your server you should check the php error log. Sometimes it may be your server's configuration issue or most likely because of the form not being structured correctly.
Thanks! I set the "accept character set" to UFT-8 and "Target to "_Blank but I'm not sure what you mean by "so from client sided JavaScript validation to make sure data has proper input" I don't see any place to tweak Javascript and acceptable text input format, such as valid email etc.
I appreciate your suggestions.

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 5:48 pm
by wwonderfull
on the editbox property you can see validation there you can configure.

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Mon May 13, 2024 6:24 pm
by BaconFries
Have you read the following regarding Form validation

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Tue May 14, 2024 3:01 pm
by Fredl
After verifying the input-text validation it still doesn't work. I tried going back to the default mailer options instead of using SMTP, which does complete and shows the success page, however mail is still not being sent. This is a MS 365 server hosted on Godaddy, it would seem like a lot of people would need this function to work, any tips on getting a simple contact form to work would be appreciated. I have read the FAQ and whatever I'm doing wrong escapes me. Thanks.
(I would send a project file, but the last one got taken down immediately because of the account exposure (I already changed the PW).)

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Tue May 14, 2024 3:21 pm
by Pablo
This can only be a configuration issue.

If the emails are not sent by the server then you will need to contact your webhost and ask them why it is not sent.
Based on their feedback you can then update your form settings.

See also the FAQ:
viewtopic.php?f=10&t=32967

Re: Contact form not sending mail or loading "sucess/error" pages

Posted: Tue May 14, 2024 3:31 pm
by Fredl
Indeed it was on the server side, I had already reached out to the hosting company and the rep I spoke to didn't see why it wasn't working, but today I got one who fixed the issue, and believe it or not it was completely unexpected. The value I had in the subject line included "website form" which Godaddy blocks based on previously successful hacks, so it had nothing to do with WB19 and everything to do with an obscure rule at the hosting company. Thanks for everybody's patience and assistance. I did learn a bit along the way.

Re: Contact form not sending mail or loading "sucess/error" ***SOLVED***pages

Posted: Tue May 14, 2024 4:11 pm
by Pablo
Thanks for clearing that up!