Forum
Perch Forms Not Being Emailed
Hi all,
I was just wondering if anyone else was having issues with Perch Forms submissions not being emailed?
When I send a test email from Perch admin in settings, it works straight away no problem and I receive the email. But just recently emails from Perch Forms seem to have stopped working.
I've even turned off our spam filter to see if that worked but unfortunately, it made no difference.
I've also tried using different to and from email addresses, but again no luck
And it's not just me, other clients and our freelance developers are having the same problem too.
Many thanks
Perch: 3.0.10, PHP: 7.0.22, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.6.1), perch_forms (1.9), chirp_seo (1.1)
App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_forms', 'chirp_seo' ];
PERCH_LOGINPATH: /cms
PERCH_PATH: /home/plant/U0MA6EL3/htdocs/cms
PERCH_CORE: /home/plant/U0MA6EL3/htdocs/cms/core
PERCH_RESFILEPATH: /home/plant/U0MA6EL3/htdocs/cms/resources
Image manipulation: GD Imagick
PHP limits: Max upload 128M, Max POST 128M, Memory: 256M, Total max file upload: 128M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: globalplantgenetics.com
DOCUMENT_ROOT: /home/plant/U0MA6EL3/htdocs/
REQUEST_URI: /cms/core/settings/diagnostics/
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
Are they not being sent, or not being received?
Not entirely sure - how would I find out?
I would guess at not being sent as we've tried sending to several different email addresses (on different mail servers) and also from several email addresses and no of them have worked.
You could try sending them to something like Mailtrap https://mailtrap.io
Also, if you turn on debug you can see emails being sent.
I often find it's the 'Send from address' in the Form Settings that makes a difference.
Depending on the server, what you put into that field determines whether it reaches it's destination or not.
Where possible I like to have the ID of the field in the form for the Send from address e.g.:
{email}
Other times an email address with the same domain as the website for the Send from address e.g.:
website@my-website-domain.com
Getting somewhere, I'm getting
Could not instantiate mail function.
It looks like your SMTP settings are incorrect.
Sorry Drew, just edited the post above as now getting
Could not instantiate mail function.
The test email via settings comes through fine
Ok, how I can I help with this?
Help me to fix why no emails are being sent from Perch Forms!
Hi Glen,
When you receive your test email, what address is it from? If you add that email address to 'Send from address' in the Form Options does the form submit successfully?
It looks like the software is attempting to send but the server isn't correctly configured. What does your server admin say about this?
Interesting.
Thanks Simon, if I change the
email from address
to mine it works, yet turning it back I get theCould not instantiate mail function.
error in debug.We run nearly 30 Perch websites on our server and have never had this issue before which is why I've come here first rather than ask our server support.
What's the difference between this and the 29 others that are working?
Nothing as far as I'm aware - I normally set the form
email from address
as the client's general email address like info@ or enquiries@ in case the customer directly replies to the email,Hi Glen, yes, it's odd if you've not had the issue before on the same server.
What do you have the
email from address
as: a dynamic ID from the form itself e.g.{email}
, or a fixed email address? ah - I see you've just answered that.Can you try a dynamic ID from the form itself e.g.
{email}
? In which case it would come from the person who filled out the form's email.A few bits of info here re the error message: https://docs.mailpoet.com/article/56-could-not-instantiate-mail-function
I have a similar number of Perch sites to you (on differen servers) and have had similar issues and been able to resolve them by changing the
email from address
, but for the first time last week I had to add this to my perch/config/config.php file to make it work:Which was the only thing that worked in this instance. It basically uses the clients mail server to send the form data.
As described here: https://docs.grabaperch.com/perch/configuration/email/
But in my mind, if the client changed their email password (unlikely, but possible), this would stop working.
Thanks Simon
I've just changed the
PERCH_EMAIL_FROM
andPERCH_EMAIL_FROM_NAME
in config.php from mine (from when first setting up Perch) with the client's and then matched that in theemail from address
on the form options and it's worked.Strange one