From: eric casteleijn Date: Mon, 23 May 2011 14:04:46 +0000 (-0400) Subject: Added another way to set the from address automatically when sending mail through... X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=f1bc6af50df4383abc038fd22d26356eb18075bc;hp=a06239614d6ed2ff7cb04980c49468fdcfc65762;p=notmuch-wiki Added another way to set the from address automatically when sending mail through msmtp. --- diff --git a/emacstips.mdwn b/emacstips.mdwn index d3b184e..3be6ae7 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -250,6 +250,13 @@ With that in place, you need a `.msmtprc` with the accounts configured for the domains you want to send out using specific SMTP servers and the rest will go to the default account. +If you have a hard time getting the above to work for you, as I did, +it's also possible to add a message-send-mail-hook in your .emacs to +send the from header explicitly as an argument to msmtp: + +(http://www.emacswiki.org/cgi-bin/wiki/GnusMSMTP#toc2) + + ## Address completion when composing There are currently two solutions to this: