<p>Google considers SMTP to be an "insecure" protocol when connecting to their servers.  You have to explicitly go into your account settings as described <a href="https://support.google.com/accounts/answer/6010255?hl=en" rel="nofollow noreferrer">here</a> and enable access for these "insecure" requests.</p>

CC BY-SA 3.0
2017-06-21T20:21:52.173Z
2017-06-21T20:21:52.173Z
Brad Bell
<p>I have tried to configure email as an SMTP client for a Google Mail server. When I click test I get a generic "There was an error testing your email settings", but no further info in Craft log files. The error displays almost instantly, so it does not seem like a connection issue, e.g. password / username error.</p>

<p>Craft is latest version and site is hosted with Arcustech. </p>

CC BY-SA 3.0
2017-06-20T17:04:56.693Z
Can you post your config (obfuscating your credentials of course)?
Rick Kukiela
CC BY-SA 3.0
2017-06-20T17:26:30.617Z
There should be an error getting logged in `craft/storage/runtime/logs` as well.
Brad Bell
CC BY-SA 3.0
2017-06-21T18:02:39.923Z
As I said in the post, no errors show up in the logs
Roi Agneta
CC BY-SA 3.0
2017-06-21T18:07:48.837Z
Config settings: protocol:smtp    hostname:smtp.google.com   port:465  use SMTP authentication  Username:my email address Password:my password SMTP Secure Transport Type: SSL   Note that these settings are recommended by Google and the exact same settings work fine in my desktop email client
Roi Agneta
<emails>
Error Configuring Email for SMTP
# Error Configuring Email for SMTP

(Asked by: username_0 on 2017-06-20)

I have tried to configure email as an SMTP client for a Google Mail server. When I click test I get a generic "There was an error testing your email settings", but no further info in Craft log files. The error displays almost instantly, so it does not seem like a connection issue, e.g. password / username error.

Craft is latest version and site is hosted with Arcustech.

**Tags:** emails

> **Comments:**
> **username_1**: Can you post your config (obfuscating your credentials of course)?  
> **username_2**: There should be an error getting logged in `craft/storage/runtime/logs` as well.  
> **username_0**: As I said in the post, no errors show up in the logs  
> **username_0**: Config settings: protocol:smtp    hostname:smtp.google.com   port:465  use SMTP authentication  Username:my email address Password:my password SMTP Secure Transport Type: SSL   Note that these settings are recommended by Google and the exact same settings work fine in my desktop email client  

---

## 1 answers

### Answer by username_2 on 2017-06-21. Score: 2

Google considers SMTP to be an "insecure" protocol when connecting to their servers. You have to explicitly go into your account settings as described [here](https://support.google.com/accounts/answer/6010255?hl=en) and enable access for these "insecure" requests.


---

