Forum

Thread tagged as: Problem, Forms

Form app: Send response via email not working (with Gmail)

5 months ago I had the same issue and I solved it by adding a Dreamhost email.

This time I need to use client's Gmail and is not working. It sends the message but we dont get the notifications.

Here is what I wrote on config.php

define('PERCH_EMAIL_FROM', 'clientsemail@gmail.com');
define('PERCH_EMAIL_FROM_NAME', 'Clients  name');

define('PERCH_EMAIL_METHOD', 'smtp');
define('PERCH_EMAIL_HOST', 'smtp.gmail.com');
define('PERCH_EMAIL_AUTH', true);
define('PERCH_EMAIL_SECURE', 'ssl');
define('PERCH_EMAIL_PORT', 465);
define('PERCH_EMAIL_USERNAME', 'clientsemail@gmail.com');
define('PERCH_EMAIL_PASSWORD', 'clients pass');

any idea?

Raul Serrano

Raul Serrano 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You may need to switch the gmail account to insecure mode.

https://support.google.com/accounts/answer/6010255?hl=en

Drew, If I had to explain my client to switch to insecure mode, how much insecure is that?

Drew McLellan

Drew McLellan 2638 points
Perch Support

You should probably ask Google that. I think basically they want to discourage doing stuff like this.

We use Postmark to send email https://postmarkapp.com

It still not work after allowing insecure apps... It stores in All Responses but not forward an email....

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you tested the email address under Settings?

How can I do that Drew?

Drew McLellan

Drew McLellan 2638 points
Perch Support

In Perch, go to Settings and Email and perform a test.

I use Postmark for all the sites on my servers too. It's great :)

SMTP connect() failed

Current configuration

Method: smtp Host: smtp.gmail.com Port: 465 Authenticate: Yes Username: myemail@gmail.com Password: *****************

Drew McLellan

Drew McLellan 2638 points
Perch Support

You need to make sure that test completes successfully for email to be sent.

Yes, but I am in the same problem... How can I make it work?

Drew McLellan

Drew McLellan 2638 points
Perch Support

You just need to use the right settings - I don't know what those would be for your mail server, and I'm not in a position to be able to test with your mail server. This isn't something I can help with.