Skip to content

Update gmail.rst #5085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cookbook/email/gmail.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@ You're done!

The ``gmail`` transport is simply a shortcut that uses the ``smtp`` transport
and sets ``encryption``, ``auth_mode`` and ``host`` to work with Gmail.

.. note::

Depending on your Gmail account settings, you may get authentication errors within your app.
If your Gmail account uses 2-Step-Verification, you should `generate an App password`_ to use for your
``mailer_password`` parameter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need for this line break. Can you also please wrap lines after the first word that crosses the 72nd character instead?

You should also ensure that you `allow less secure apps to access your Gmail account`_.

.. _`generate an App password`: https://support.google.com/accounts/answer/185833
.. _`allow less secure apps to access your Gmail account`: https://support.google.com/accounts/answer/6010255