Hi Michael, 2022-11-24 20:42 GMT+01:00, Michael Partridge <mcp...@nau.edu>: > Happy Thanksgiving! > I'm having trouble using `git --send-email` to send a patch in. > > I am trying to use this email address (mcp...@nau.edu) with the > following settings in my global config: > ``` > [sendemail] > smtpencryption = tls > smtpserver = smtp.gmail.com > smtpuser = mcp...@nau.edu > smtpserverport = 587 > ``` > > Source: https://git.wiki.kernel.org/index.php/GitTips#Mail > > Although it is an NAU account, it routes to a gmail inbox. > > I've also tried the SSL settings from this page: > https://support.google.com/mail/answer/7126229?authuser=1&visit_id=638049147999726000-3838985679&hl=en&rd=1#zippy=%2Cstep-change-smtp-other-settings-in-your-email-client > > What email service do you guys use and how did you set it up for the > commandline? > > > MCP > >
Gmail doesn't allow to use SMTP in a classic way (normal auth with/without encryption). You may need to ask your sysadmins for XOAUTH2 keys and try to pass that git send-email through an SMTP thing like msmtp. A faster solution would be to make the patches with git format-patch and then send a manually created email with the patches attached.