Re: [dev] Commandline Email Advice Request

From: Nihal Jere <nihal_AT_nihaljere.xyz>
Date: Fri, 25 Nov 2022 16:14:57 -0600

On Thu, Nov 24, 2022 at 12:42:08PM -0700, Michael Partridge wrote:
> Happy Thanksgiving!
> I'm having trouble using `git --send-email` to send a patch in.
>
> I am trying to use this email address (mcp292_AT_nau.edu) with the
> following settings in my global config:
> ```
> [sendemail]
> smtpencryption = tls
> smtpserver = smtp.gmail.com
> smtpuser = mcp292_AT_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
>

According to the git-config man page, variable names are case sensitive,
so smtpencryption should be smtpEncryption (and so on). In your Google
account settings, it should be possible to create an app-password
that you can give to git-send-email just to access SMTP (if two-factor
authentication is enabled). Personally I have configured git-send-email
to use msmtp, and use port 465 with success. It would also be helpful
to see what error message you're actually getting because the things I
mentioned are just guesses at what could be your problem.

Best,
Nihal
Received on Fri Nov 25 2022 - 23:14:57 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 25 2022 - 23:24:07 CET