Forum
Form auto response
Hi there,
Getting some strange behaviours with forms at the moment. I've setup all the information so that the user will get a message on the submission of a form and the admin will also get the information submitted. On my newest website straight up doesn't send anything.
The test email sends fine, and I've got the email setup in my config. I've tried debugging the page, but no errors occur on for submission that would point to any obvious issues.
I then went to my own site - now running an older version of perch - and tried the same. Initially I was getting the responses, however they've not stopped working for no obvious reason.
My form looks like:
<header class="user-Form_Header">
<h1><perch:content id="heading" type="text" label="Heading" required="true" /></h1>
</header>
<div class="user-Form_Form">
<perch:form id="contact" method="post" app="perch_forms" role="form">
<div class="input">
<perch:label for="name">Name:</perch:label>
<perch:input id="name" type="text" antispam="name" required="true" placeholder="Name" label="name" />
<span class="input__error"><perch:error for="name" type="required"><p>This field is required</p></perch:error></span>
</div>
<div class="input">
<perch:label for="email">Email:</perch:label>
<perch:input id="email" type="email" antispam="email" required="true" placeholder="Email" label="email" />
<span class="input__error">
<perch:error for="email" type="required"><p>This field is required</p></perch:error>
<perch:error for="email" type="format"><p>Please enter a valid email</p></perch:error>
</span>
</div>
<div class="input">
<perch:label for="subject">Subject:</perch:label>
<perch:input id="subject" type="text" antispam="subject" required="true" placeholder="Subject" label="subject" />
<span class="input__error"><perch:error for="subject" type="required"><p>This field is required</p></perch:error></span>
</div>
<div class="input">
<perch:label for="telephone">Tel:</perch:label>
<perch:input id="telephone" type="text" placeholder="Telephone No." label="telephone" />
</div>
<div class="input">
<perch:label for="message">Message:</perch:label>
<perch:input id="message" type="textarea" antispam="message" required="true" placeholder="Message" label="message" />
<span class="input__error"><perch:error for="message" type="required"><p>This field is required</p></perch:error></span>
</div>
<perch:input type="submit" id="submit" class="int-Button int-Button_Med int-Button_Yellow" value="Send" />
<perch:after>
<perch:success>
<div class="contact-form__alert alert--thanks">
<perch:content id="success" type="textarea" label="Thank you message" textile="true" editor="markitup" />
</div>
</perch:success>
</perch:after>
</perch:form>
</div>
So they were working, and now they're not, but nothing has changed?
Sorry drew, I had so many sites open I was getting confused. So the site in question has never worked and my debug is now showing a series of errors:
I've checked with my host and the port 465 is allowed, as my initial thought was that it was being blocked.
My config file has the following:
You are getting errors like "MySQL Server has gone away", "Error sending query packet". These don't come from Perch so you would need to speak to your host.
Hi Rachel,
Strangely it works when I remove the config code I posted above. Not sure how it does without anything at all, but it's sending fine and no errors.