Thread with 5 posts

jump to expanded post

I don't know who needs to hear this, but instead of configuring git so it can directly send emails, which is complex and error-prone, you can instead just do:

git format-patch HEAD^ --to=somelist@example.org --stdout > eml.eml
open -a Mail eml

and then use the “Send Again” feature of the mail client (macOS's Mail in this case)

Open thread at this post
Tim Düsterhus , @timwolla@phpc.social
(open profile)

@hikari git send-email supports configuring an SMTP server. For me it's working absolutely seamlessly:

[sendemail]
smtpEncryption = tls
smtpServer = smtp.example.com
smtpServerPort = 587
smtpUser = user@example.com

Then

git format-patch -M master --to=foo@example.com -o outgoing

and

git send-email outgoing/*.patch

It will ask for the password on the CLI - and running it from the VS Code terminal even has an integration to ask for the password in a dialog box.

Open remote post (opens in a new window)