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

Issues related to forms.
Post Reply
Fredl
 
 
Posts: 134
Joined: Tue Feb 21, 2017 10:15 pm

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

Post 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***
Last edited by Fredl on Tue May 14, 2024 3:32 pm, edited 1 time in total.
wwonderfull
 
 
Posts: 1439
Joined: Fri Aug 21, 2020 8:27 am
Contact:

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

Post 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.
wwonderfull
 
 
Posts: 1439
Joined: Fri Aug 21, 2020 8:27 am
Contact:

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

Post 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.
User avatar
BaconFries
 
 
Posts: 5640
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

I have removed the download for reasons posted by wwonderfull...please do not include any information as you have!!
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

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

Post 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
Fredl
 
 
Posts: 134
Joined: Tue Feb 21, 2017 10:15 pm

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

Post 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.
Fredl
 
 
Posts: 134
Joined: Tue Feb 21, 2017 10:15 pm

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

Post 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.
wwonderfull
 
 
Posts: 1439
Joined: Fri Aug 21, 2020 8:27 am
Contact:

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

Post by wwonderfull »

on the editbox property you can see validation there you can configure.
User avatar
BaconFries
 
 
Posts: 5640
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

Have you read the following regarding Form validation
Fredl
 
 
Posts: 134
Joined: Tue Feb 21, 2017 10:15 pm

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

Post 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).)
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

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

Post 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
Fredl
 
 
Posts: 134
Joined: Tue Feb 21, 2017 10:15 pm

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

Post 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.
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

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

Post by Pablo »

Thanks for clearing that up!
Post Reply