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

smtp server on windows

From
Pascal Obry <pascal.obry@gmail.com>
Date
Sep 4, 2010, 14:03 UTC
Message-ID
<4C8251A0.1020809@obry.net>
Hi there,
One simple SMTP server on Windows (using Cygwin) is msmtp.

I'd like to use two different SMTP accounts depending on the repository I'm working (this is to get the proper identify on the from header).

I have two accounts configured and working in my ~/.msmtprc named gmail and wanadoo.

I have on my .git/config to send e-mail (and this is working):
[sendemail]
        smtpserver = /usr/sbin/msmtp

This is using the default account as specified in my .msmtprc. I want to use a specific account (say gmail) for this repository, I tried:

[sendemail]
        smtpserver = /usr/sbin/msmtp --account=gmail

but this fails as smtpserver is expecting a simple executable. Is there a way to pass some parameters to an smtpserver specified on a Git configuration?

Thanks.
Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
Next: Ævar Arnfjörð Bjarmason
Message 1 of 3 in “smtp server on windows”
  1. Pascal ObrySep 4, 2010
  2. Ævar Arnfjörð BjarmasonSep 4, 2010
  3. Pascal ObrySep 4, 2010

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.