docs: update sendmail docs to use more secure SMTP server for Gmail

Earlier recommendation by IETF with RFC 2595 was to deprecate implicit TLS in preference for upgrade an initially unencrypted connection with STARTTLS command. These days, however, IETF recommends that connections be made using "Implicit TLS", in preference to STARTTLS and the like, completely reversing their earlier position, in RFC8314. Update the GMail example to use the implicit TLS to match the current recommendation at port 465. Signed-off-by: Aditya Garg <gargaditya08@live.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Aditya Garg committed Aug 26, 2025 at 15:09 UTC fafc9b08b83fb4510aad7226739d87ac810362d2
1 file changed +4 -4
Documentation/git-send-email.adoc
+4 -4
@@ -521,10 +521,10 @@ edit `~/.gitconfig` to specify your account settings:
521
522 ----
523 [sendemail]
524 - smtpEncryption = tls
524 + smtpEncryption = ssl
525 smtpServer = smtp.gmail.com
526 smtpUser = yourname@gmail.com
527 - smtpServerPort = 587
527 + smtpServerPort = 465
528 ----
529
530 Gmail does not allow using your regular password for `git send-email`.
@@ -542,10 +542,10 @@ if you want to use `OAUTHBEARER`, edit your `~/.gitconfig` file and add
542
543 ----
544 [sendemail]
545 - smtpEncryption = tls
545 + smtpEncryption = ssl
546 smtpServer = smtp.gmail.com
547 smtpUser = yourname@gmail.com
548 - smtpServerPort = 587
548 + smtpServerPort = 465
549 smtpAuth = OAUTHBEARER
550 ----
551