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 usern...@gmail.com > user usern...@gmail.com > passwordeval "pass usern...@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