Thread with 5 posts
jump to expanded postI 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)
AFAICT git-send-email is basically a script that runs git-format-patch and then sendmail, so the result of doing this is not any worse
@hikari iirc some email clients break whitespace when doing this
@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.