[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting up gmail for git send-email
From: |
lucy |
Subject: |
Re: Setting up gmail for git send-email |
Date: |
Thu, 30 May 2024 11:15:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 |
Hello thank you for the response
A issue for me was the need for 2fa, but thankfully the sendgmail approach
seems to work without that by using a gmail dev api setup.
All the best
On 30/05/2024 04:21, Imran Iqbal wrote:
>> I am unsure if my reply on debuggs was sent, i am yet to get a email address
>> that supports git send-email,
>> Also if anyone sees this and has an invite to riseup email service ( should
>> the service be capable of handling another stranger) then please may i have
>> a invite?, google sux
> I know that this is not the main point of your email (hence changing the
> subject), but I would like to chime in on how I get my gmail to work git
> send-email. The easiest way is to just have it use another program. In
> my case I use msmtp.
>
> In your ~/.gitconfig:
> --8<---------------cut here---------------start------------->8---
> [sendemail]
> smtpserver = /usr/bin/msmtp
> smtpserveroption = -a
> smtpserveroption = gmail
> --8<---------------cut here---------------end--------------->8---
>
> For ~/.msmtp
> --8<---------------cut here---------------start------------->8---
> defaults
> auth on
> tls on
> tls_trust_file /etc/ssl/certs/ca-certificates.crt
> logfile ~/.msmtp.log
>
> # Gmail
> account gmail
> host smtp.gmail.com
> port 465
> tls_starttls off
> from username@gmail.com
> user username@gmail.com
> passwordeval "pass username@gmail.com"
> --8<---------------cut here---------------end--------------->8---
>
> The actual password that you put in your password manager in this case
> would be an app password [0].
>
> This setup works for me for a bunch of different email accounts across
> gmail/live/ymail
>
> [0] https://support.google.com/accounts/answer/185833?hl=en