You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ``gmail`` transport is simply a shortcut that uses the ``smtp`` transport
109
+
and sets these options:
110
+
111
+
============== ==================
112
+
Option Value
113
+
============== ==================
114
+
``encryption`` ``ssl``
115
+
``auth_mode`` ``login``
116
+
``host`` ``smtp.gmail.com``
117
+
============== ==================
118
+
119
+
If your application uses ``tls`` encryption or ``oauth`` authentication, you
120
+
must override the default options by defining the ``encryption`` and ``auth_mode``
121
+
parameters.
122
+
123
+
If you are using 2-Step-Verification, you must `generate an App password`_ and
124
+
use this as your ``mailer_password`` value.
125
+
126
+
If your Gmail account uses 2-Step-Verification, you must `generate an App password`_
127
+
and use it as the value of the ``mailer_password`` parameter. You must also ensure
128
+
that you `allow less secure apps to access your Gmail account`_.
129
+
130
+
.. seealso::
131
+
132
+
see the :doc:`Swiftmailer configuration reference </reference/configuration/swiftmailer>`
133
+
for more details.
85
134
86
135
.. _`generate an App password`: https://support.google.com/accounts/answer/185833
87
136
.. _`allow less secure apps to access your Gmail account`: https://support.google.com/accounts/answer/6010255
0 commit comments