Perch Forms Not sending Email
The form is coming into the list responses, the test email works, the email can send and receive emails, the success message works. But the notification email is not coming in.
Debug
Debug Message - Perch 3.0.10
[1] SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='201104dd0700ee571e19288bd71657e1' LIMIT 1
UPDATE perch2_users SET userHash='407fcfcb5c997ba648deac4769f4f8b4' WHERE userID='1'
[21] SELECT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID ASC
[7] SELECT itemValue FROM perch2_menu_items WHERE itemType='app'
[1] SELECT * FROM perch2_forms WHERE formID='1' LIMIT 1
[2] SELECT SQL_CALC_FOUND_ROWS DISTINCT * FROM perch2_forms_responses WHERE formID=1 AND responseSpam=0 ORDER BY responseCreated DESC LIMIT 0, 10
[2] SELECT FOUND_ROWS() AS `count`
[1] SELECT mi.*, p.privKey FROM perch2_menu_items mi LEFT JOIN perch2_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=0 ORDER BY itemOrder ASC LIMIT 0, 1
[2] SELECT mi.*, p.privKey FROM perch2_menu_items mi LEFT JOIN perch2_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=1 ORDER BY mi.itemOrder ASC
[1] SELECT itemTitle FROM perch2_menu_items WHERE itemType='app' AND itemValue='perch_forms' LIMIT 1
[1] SELECT mi.*, p.privKey FROM perch2_menu_items mi LEFT JOIN perch2_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=0 ORDER BY itemOrder ASC LIMIT 1, 10
[2] SELECT mi.*, p.privKey FROM perch2_menu_items mi LEFT JOIN perch2_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=2 ORDER BY mi.itemOrder ASC
File: /addons/apps/perch_forms/modes/responses.list.post.php
Queries: 13
Memory: 2.6556
Form Code
<perch:form id="contact" method="post" action="#success" app="perch_forms">
<div class="control-group">
<perch:label class="control-label" for="name">Name</perch:label>
<div class="controls">
<perch:input type="text" id="name" required="true" class="input-xlarge" label="Name" />
<perch:error for="name" class="input-xlarge" type="required">Please add your name</perch:error>
</div>
</div>
<div class="control-group">
<perch:label class="control-label" for="email">Email</perch:label>
<div class="controls">
<perch:input type="email" id="email" required="true" class="input-xlarge" label="Email" placeholder="you@company.com" />
<perch:error for="email" type="required">Please add your email address</perch:error>
<perch:error for="email" type="format">Please check your email address</perch:error>
</div>
</div>
<div class="control-group">
<perch:label class="control-label" for="phone">Phone Numbers</perch:label>
<div class="controls">
<perch:input type="text" id="phone" required="false" class="input-xlarge" label="Phone" placeholder="555-555-5555" />
<perch:error for="email" type="required">Please add your phone number</perch:error>
</div>
</div>
<div class="control-group">
<perch:label class="control-label" for="message">Message</perch:label>
<div class="controls">
<perch:input type="textarea" id="message" required="true" class="input-xlarge" label="Message" />
<perch:error for="message" type="required">Please add a message</perch:error>
</div>
</div>
<div class="control-group">
<div class="controls">
<perch:input type="submit" id="submit" value="Send" class="btn btn-primary"/>
</div>
</div>
<div class="control-group">
<div class="controls">
<perch:success ">
<perch:content id="success" label="Success Message" type="textarea" textile="true" editor="markitup" />
</perch:success>
</div>
</div>
</perch:form>
Please help!
Have you tested with something like mailtrap.io?
No I haven't. What will this tell me?
It will tell you if your installation/server email is working, and allow us (Developers) to help determine/investigate if you have software or server issue.
The nice thing about mailtrap.io is there is no inbox filtering and spam filters, so if your server sends, mailtrap will receive and it won’t be filtering and hiding the messages. Also it has a really good logging system which will help you pinpoint issues.
My email has worked on a perch form on this same server previously.
But it must not be now as you're here looking for help. It would really be helpful if you could provide your diagnostic report, and provide details as to what has recently changed since you received the last email.
A reply of "nothing has changed" is obviously not helpful because something has had to change or nothing would be different. Maybe your host has updated something on the server, you updated perch or a perch app... We want to help... but this will require some more information.
RK
On the same server, I can put in my email in this other form and the email will send to me. I'm not saying "nothing has changed" I'm saying my email in another form on the same server is currently working.
Below is the diagnostics report for the perch site with the form currently working with my email. these sites are both hosted on the same server.
Please confirm, in cms go to settings, email and put an email address in and let me know if that email sends and is received, this will tell us sending is working, then we will have a good start
"You're good to go!
This is a test email to check that your server's email settings are correctly configured.
As you have received this message, everything seems to be fine!"
Is this the form? https://syvmarriott.com/contact
yes it is
Everything online looks right in the html, I am going to try the posted template in my dev right now and see if it sends for me...
using your posted template with no modification I was able to complete the form and it sent, so it isn't a template issue...
What are your settings in Perch Forms "options" for this form? There is a checkbox to "Send response via email"...
Are the responses at least showing up in perch_forms?
Yes, the checkbox is selected and the responses are coming into perch
Ok, This really seems like SMTP issue. You really need to try mailtrap.io to verify, because everything "Perch" seems to be working, and when I sent the form on your live site, it showed me the success message, so I am pretty sure it worked, but I didn't get a response in email.
RK
It doesn't seem to be an SMTP issue because our other form is running the same SMTP settings and I can receive notification emails from that form.
Have you tried the mailtrap as suggested at least twice above? Your asking for help, yet fighting the attempt to help you.
I am just trying to walk through the steps which help to isolate the issue.
Just because another site on the same server works does not mean all sites will work, as each site is a separate occurrence, which just happens to be on the same server.
We configured with what mailtrap has provided and still did not receive an email
It might be best to completely remove the forms app, and reinstall, this will not harm any of your templates. I would re-download forms app, then do fresh install. Maybe some file is missing, or corrupted.
We have resolved the issue. We changed define('PERCH_EMAIL_METHOD', 'smtp'); to define('PERCH_EMAIL_METHOD', 'sendmail');