@@ -160,7 +160,7 @@ party provider:
160
160
Provider SMTP HTTP API
161
161
==================== ==================================================== =========================================== ========================================
162
162
Amazon SES ses+smtp://USERNAME:PASSWORD@default ses+https://ACCESS_KEY:SECRET_KEY@default ses+api://ACCESS_KEY:SECRET_KEY@default
163
- Google Gmail gmail+smtp://USERNAME:PASSWORD@default n/a n/a
163
+ Google Gmail gmail+smtp://USERNAME:APP- PASSWORD@default n/a n/a
164
164
Mailchimp Mandrill mandrill+smtp://USERNAME:PASSWORD@default mandrill+https://KEY@default mandrill+api://KEY@default
165
165
Mailgun mailgun+smtp://USERNAME:PASSWORD@default mailgun+https://KEY:DOMAIN@default mailgun+api://KEY:DOMAIN@default
166
166
Mailjet mailjet+smtp://ACCESS_KEY:SECRET_KEY@default n/a mailjet+api://ACCESS_KEY:SECRET_KEY@default
@@ -188,6 +188,15 @@ OhMySMTP ohmysmtp+smtp://API_TOKEN@default n/a
188
188
When using SMTP, the default timeout for sending a message before throwing an
189
189
exception is the value defined in the `default_socket_timeout `_ PHP.ini option.
190
190
191
+ .. note ::
192
+
193
+ To use Google Gmail, you must have a Google Account with 2-Step-Verification (2FA)
194
+ enabled and you must use `App Password `_ to authenticate. Also note that Google
195
+ revokes your App Passwords when you change your Google Account password and then
196
+ you need to generate a new one.
197
+ Using other methods (like ``XOAUTH2 `` or the ``Gmail API ``) are not supported currently.
198
+ You should use Gmail for testing purposes only and use a real provider in production.
199
+
191
200
.. tip ::
192
201
193
202
If you want to override the default host for a provider (to debug an issue using
@@ -1562,3 +1571,4 @@ you can use the built in assertions::
1562
1571
.. _`PEM encoded` : https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail
1563
1572
.. _`default_socket_timeout` : https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
1564
1573
.. _`RFC 3986` : https://www.ietf.org/rfc/rfc3986.txt
1574
+ .. _`App Password` : https://support.google.com/accounts/answer/185833
0 commit comments