~sircmpwn/git-send-email.io

7ec90312561f9a7fedb0afa1c6f3084690671262 — Thomas Jost 1 year, 2 months ago 432236a
Update local SMTP client config for sendemail.sendmailCmd
1 files changed, 16 insertions(+), 6 deletions(-)

M index.html
M index.html => index.html +16 -6
@@ 149,16 149,26 @@
              <div class="content">
                <p>
                  If you already have an SMTP client installed, you can configure
                  git send-email to use it by setting <code>sendemail.smtpserver</code>
                  to the path of its executable. For example, to use msmtp you
                  git send-email to use it by setting its command with
                  <code>sendemail.sendmailCmd</code>. For example, to use msmtp you
                  could add this to your global configuration file:
                  <pre>[sendemail]
    smtpserver = /usr/bin/msmtp</pre>
    sendmailCmd = /usr/bin/msmtp</pre>
                </p>
                <p>
                  If you have multiple accounts configured for your SMTP client and want to specify one, you can use the
                  <code>sendemail.smtpserveroption</code> setting. For example, to choose an account named
                  <code>work</code> configured for msmtp:
                  If you have multiple accounts configured for your SMTP client and want to
                  specify one, you can add the required command parameters in the
                  <code>sendemail.sendmailCmd</code> setting. For example, to choose an account
                  named <code>work</code> configured for msmtp:
                  <pre>[sendemail]
    sendmailCmd = /usr/bin/msmtp -a work</pre>
                </p>
                <p>
                  Please note that the <code>sendemail.sendmailCmd</code> setting
                  was added in Git 2.33. If you use an older version of Git, you must
                  add the path to your SMTP client as <code>sendemail.smtpserver</code>, and
                  parameters as multiple <code>sendemail.smtpserveroption</code>. For example,
                  the previous msmtp configuration would be:
                  <pre>[sendemail]
    smtpserver = /usr/bin/msmtp
    smtpserveroption = -a