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

[PATCH v3] git-send-email.txt: mention less secure app access with Gmail

From
Denton Liu <liu.denton@gmail.com>
Date
Jan 7, 2021, 11:11 UTC
Message-ID
<274475559a6de9c95c9c6cd30b5d056a31cc2853.1610017875.git.liu.denton@gmail.com>
In-Reply-To
<20200829153920.17155-1-vvavrychuk@gmail.com>

Google may have changed Gmail security and now less secure app access needs to be explicitly enabled if two-factor authentication is not in place, otherwise send-email fails with:

	5.7.8 Username and Password not accepted. Learn more at
	5.7.8  https://support.google.com/mail/?p=BadCredentials
Document steps required to make this work.
Original-patch-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
---
Range-diff against v2:
1:  2bcfd1403f < -:  ---------- Documentation/git-send-email.txt: Mention less secure app access might need to enable.
-:  ---------- > 1:  274475559a git-send-email.txt: mention less secure app access with Gmail
 Documentation/git-send-email.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 0a69810147..0db0783f2f 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -494,10 +494,14 @@ edit ~/.gitconfig to specify your account settings:
 	smtpServerPort = 587
 ----
 
-If you have multifactor authentication setup on your gmail account, you will
+If you have multi-factor authentication set up on your Gmail account, you will
 need to generate an app-specific password for use with 'git send-email'. Visit
 https://security.google.com/settings/security/apppasswords to create it.
 
+If you do not have multi-factor authentication set up on your Gmail account,
+you will need to allow less secure app access. Visit
+https://myaccount.google.com/lesssecureapps to enable it.
+
 Once your commits are ready to be sent to the mailing list, run the
 following commands:
 
-- 
2.30.0
Previous: Junio C HamanoNext: Eric Sunshine
Message 8 of 9 in “Documentation/git-send-email.txt: Mention less secure app access might need to enable.”
  1. Documentation/git-send-email.txt: Mention less secure app access might need to enable.Vasyl Vavrychuk, Aug 17, 2020
  2. Eric SunshineAug 17, 2020
  3. Documentation/git-send-email.txt: Mention less secure app access might need to enable.Vasyl Vavrychuk, Aug 29, 2020
  4. Junio C HamanoAug 29, 2020
  5. Junio C HamanoAug 29, 2020
  6. Junio C HamanoSep 6, 2020
  7. Junio C HamanoDec 22, 2020
  8. git-send-email.txt: mention less secure app access with GmailDenton Liu, Jan 7, 2021
  9. Eric SunshineJan 7, 2021

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.