git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v7 4/4] docs: make the purpose of using app password for Gmail more clear in send-email

From
Aditya Garg <gargaditya08@live.com>
Date
May 30, 2025, 15:50 UTC
Message-ID
<20250530154934.10077-5-gargaditya08@live.com>
In-Reply-To
<20250530154934.10077-1-gargaditya08@live.com>

The current example for Gmail suggests using app passwords for send-email if user has multi-factor authentication set up for their account. However, it does not clarify that the user cannot use their normal password in case they do not have multi-factor authentication enabled. Most likely the example was written in the days when Google allowed using normal passwords without multi-factor authentication.

Clarify that regular passwords do not work for Gmail and app-passwords are the only way for basic authentication. Also encourage users to use OAuth2.0 as a more secure alternative.

While at it, also prefer using the word "mechanism" over "method" for `OAUTHBEARER` and `XOAUTH2` since that is what official docs use.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
---
 Documentation/git-send-email.adoc | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc
index 5d13a856a7..7bd09c254b 100644
--- a/Documentation/git-send-email.adoc
+++ b/Documentation/git-send-email.adoc
@@ -525,15 +525,18 @@ edit `~/.gitconfig` to specify your account settings:
 	smtpServerPort = 587
 ----
 
+Gmail does not allow using your regular password for `git send-email`.
 If you have multi-factor authentication set up on your Gmail account, you can
 generate an app-specific password for use with `git send-email`. Visit
 https://security.google.com/settings/security/apppasswords to create it.
 
-You can also use OAuth2.0 authentication with Gmail. `OAUTHBEARER` and
-`XOAUTH2` are common methods used for this type of authentication. Gmail
-supports both of them. As an example, if you want to use `OAUTHBEARER`, edit
-your `~/.gitconfig` file and add `smtpAuth = OAUTHBEARER` to your account
-settings:
+Alternatively, instead of using an app-specific password, you can use
+OAuth2.0 authentication with Gmail. OAuth2.0 is more secure than
+app-specific passwords, and works regardless of whether you have multi-factor
+authentication set up. `OAUTHBEARER` and `XOAUTH2` are common mechanisms used
+for this type of authentication. Gmail supports both of them. As an example,
+if you want to use `OAUTHBEARER`, edit your `~/.gitconfig` file and add
+`smtpAuth = OAUTHBEARER` to your account settings:
 
 ----
 [sendemail]
@@ -544,7 +547,7 @@ settings:
 	smtpAuth = OAUTHBEARER
 ----
 
-Alternatively, you can use a tool developed by Google known as
+Another alternative is using a tool developed by Google known as
 https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail[sendgmail]
 to send emails using `git send-email`.
 
@@ -552,7 +555,7 @@ Use Microsoft Outlook as the SMTP Server
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Unlike Gmail, Microsoft Outlook no longer supports app-specific passwords.
 Therefore, OAuth2.0 authentication must be used for Outlook. Also, it only
-supports `XOAUTH2` authentication method.
+supports `XOAUTH2` authentication mechanism.
 
 Edit `~/.gitconfig` to specify your account settings for Outlook and use its
 SMTP server with `git send-email`:
-- 
2.49.0.639.ge2dd5d9d81
Previous: Aditya GargNext: Junio C Hamano
Message 51 of 52 in “docs: add instructions to use Yahoo with send-mail”
  1. docs: add instructions to use Yahoo with send-mailAditya Garg, May 13, 2025
  2. Aditya GargMay 13, 2025
  3. Junio C HamanoMay 13, 2025
  4. Aditya GargMay 13, 2025
  5. Aditya GargMay 13, 2025
  6. Junio C HamanoMay 14, 2025
  7. Aditya GargMay 14, 2025
  8. 0/2 docs: update email credential helpersAditya Garg, May 15, 2025
  9. 1/2 docs: add credential helper for yahoo and link Google's sendgmail toolAditya Garg, May 15, 2025
  10. 2/2 docs: remove credential helper links for emails from gitcredentialsAditya Garg, May 15, 2025
  11. 0/3 docs: update email credential helpers and improve formattingAditya Garg, May 18, 2025
  12. 1/3 docs: add credential helper for yahoo and link Google's sendgmail toolAditya Garg, May 18, 2025
  13. 2/3 docs: improve formatting in git-send-email documentationAditya Garg, May 18, 2025
  14. 3/3 docs: remove credential helper links for emails from gitcredentialsAditya Garg, May 18, 2025
  15. 0/3 docs: update email credential helpers and improve formattingAditya Garg, May 19, 2025
  16. 1/3 docs: add credential helper for yahoo and link Google's sendgmail toolAditya Garg, May 19, 2025
  17. 2/3 docs: improve formatting in git-send-email documentationAditya Garg, May 19, 2025
  18. 3/3 docs: remove credential helper links for emails from gitcredentialsAditya Garg, May 19, 2025
  19. Junio C HamanoMay 19, 2025
  20. Aditya GargMay 19, 2025
  21. 0/4 docs: update email credential helpers and improve formattingAditya Garg, May 28, 2025
  22. 1/4 docs: add credential helper for yahoo and link Google's sendgmail toolAditya Garg, May 28, 2025
  23. 2/4 docs: improve formatting in git-send-email documentationAditya Garg, May 28, 2025
  24. Junio C HamanoMay 29, 2025
  25. Aditya GargMay 29, 2025
  26. Junio C HamanoMay 30, 2025
  27. Aditya GargMay 30, 2025
  28. Junio C HamanoMay 30, 2025
  29. Aditya GargMay 30, 2025
  30. Junio C HamanoMay 30, 2025
  31. Ben KnobleMay 30, 2025
  32. Aditya GargMay 30, 2025
  33. 4/4 docs: make the purpose of using app password for Gmail more clear in send-emailAditya Garg, May 28, 2025
  34. Junio C HamanoMay 29, 2025
  35. Aditya GargMay 29, 2025
  36. 3/4 docs: remove credential helper links for emails from gitcredentialsAditya Garg, May 28, 2025
  37. Eric SunshineMay 28, 2025
  38. Aditya GargMay 28, 2025
  39. Aditya GargMay 28, 2025
  40. Aditya GargMay 28, 2025
  41. Aditya GargMay 28, 2025
  42. 0/4 docs: update email credential helpers and improve formattingAditya Garg, May 30, 2025
  43. 1/4 docs: add credential helper for yahoo and link Google's sendgmail toolAditya Garg, May 30, 2025
  44. 2/4 docs: improve formatting in git-send-email documentationAditya Garg, May 30, 2025
  45. 3/4 docs: remove credential helper links for emails from gitcredentialsAditya Garg, May 30, 2025
  46. 4/4 docs: make the purpose of using app password for Gmail more clear in send-emailAditya Garg, May 30, 2025
  47. 0/4 docs: add credential helper for yahoo and link Google's sendgmail toolAditya Garg, May 30, 2025
  48. 1/4 docs: add credential helper for yahoo and link Google's sendgmail toolAditya Garg, May 30, 2025
  49. 2/4 docs: improve formatting in git-send-email documentationAditya Garg, May 30, 2025
  50. 3/4 docs: remove credential helper links for emails from gitcredentialsAditya Garg, May 30, 2025
  51. 4/4 docs: make the purpose of using app password for Gmail more clear in send-emailAditya Garg, May 30, 2025
  52. Junio C HamanoMay 30, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.