git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Specifying account profile in MSMTP

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Sep 24, 2014, 16:52 UTC
Message-ID
<CAHd499C5FZietAxQYBFwk+Zm0AeLWSADog7+=W0Fnm6G1sPSHw@mail.gmail.com>
Hey guys,

I'm using MSMTP to define 2 accounts: Work email and personal email. If I send patches via email through Git at work, I want to use my work SMTP server and account information. Likewise at home for personal projects, I want to use my personal SMTP account.

I put my .gitconfig in Dropbox and I share it across all of my machines, so I avoid putting my SMTP server information in my global config because I'd then have to use the same account everywhere. However, I do not define a "default" account in my MSMTP file (which is also in dropbox, in fact my whole home directory is in there).

Is there a way to specify the MSMTP account to use at the command line when I run `git send-email`? If not, are there other good solutions to this problem?

If not, I might contribute an option to send-email to feed down into MSMTP.exe so that I can specify the account to use. I'm not familiar at all with MSMTP so I want to ask here first. Thank you!

Next: Eric Wong
Message 1 of 2 in “Specifying account profile in MSMTP”
  1. Robert DaileySep 24, 2014
  2. Eric WongOct 19, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.