@@ -177,7 +177,7 @@ party provider:
177
177
Provider SMTP HTTP API
178
178
==================== ==================================================== =========================================== ========================================
179
179
Amazon SES ses+smtp://USERNAME:PASSWORD@default ses+https://ACCESS_KEY:SECRET_KEY@default ses+api://ACCESS_KEY:SECRET_KEY@default
180
- Google Gmail gmail+smtp://USERNAME:PASSWORD@default n/a n/a
180
+ Google Gmail gmail+smtp://USERNAME:APP- PASSWORD@default n/a n/a
181
181
Mailchimp Mandrill mandrill+smtp://USERNAME:PASSWORD@default mandrill+https://KEY@default mandrill+api://KEY@default
182
182
Mailgun mailgun+smtp://USERNAME:PASSWORD@default mailgun+https://KEY:DOMAIN@default mailgun+api://KEY:DOMAIN@default
183
183
Mailjet mailjet+smtp://ACCESS_KEY:SECRET_KEY@default n/a mailjet+api://ACCESS_KEY:SECRET_KEY@default
@@ -214,6 +214,15 @@ OhMySMTP ohmysmtp+smtp://API_TOKEN@default n/a
214
214
The usage of ``default_socket_timeout `` as the default timeout was
215
215
introduced in Symfony 5.1.
216
216
217
+ .. note ::
218
+
219
+ To use Google Gmail, you must have a Google Account with 2-Step-Verification (2FA)
220
+ enabled and you must use `App Password `_ to authenticate. Also note that Goglle
221
+ revokes your App Passwords when you change your Google Account password and then
222
+ you need to generate a new one.
223
+ Using other methods (like ``XOAUTH2 `` or the ``Gmail API ``) are not supported currenty.
224
+ You should use Gmail for testing purposes only and use a real provider in production.
225
+
217
226
.. tip ::
218
227
219
228
If you want to override the default host for a provider (to debug an issue using
@@ -1564,3 +1573,4 @@ you can use the built in assertions::
1564
1573
.. _`PEM encoded` : https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail
1565
1574
.. _`default_socket_timeout` : https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
1566
1575
.. _`RFC 3986` : https://www.ietf.org/rfc/rfc3986.txt
1576
+ .. _`App Password` : https://support.google.com/accounts/answer/185833
0 commit comments