@@ -177,7 +177,7 @@ party provider:
177177Provider SMTP HTTP API
178178==================== ==================================================== =========================================== ========================================
179179Amazon 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
181181Mailchimp Mandrill mandrill+smtp://USERNAME:PASSWORD@default mandrill+https://KEY@default mandrill+api://KEY@default
182182Mailgun mailgun+smtp://USERNAME:PASSWORD@default mailgun+https://KEY:DOMAIN@default mailgun+api://KEY:DOMAIN@default
183183Mailjet 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
214214 The usage of ``default_socket_timeout `` as the default timeout was
215215 introduced in Symfony 5.1.
216216
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 Google
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 currently.
224+ You should use Gmail for testing purposes only and use a real provider in production.
225+
217226.. tip ::
218227
219228 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::
15641573.. _`PEM encoded` : https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail
15651574.. _`default_socket_timeout` : https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
15661575.. _`RFC 3986` : https://www.ietf.org/rfc/rfc3986.txt
1576+ .. _`App Password` : https://support.google.com/accounts/answer/185833
0 commit comments