From f1bc6af50df4383abc038fd22d26356eb18075bc Mon Sep 17 00:00:00 2001 From: eric casteleijn Date: Mon, 23 May 2011 10:04:46 -0400 Subject: [PATCH] Added another way to set the from address automatically when sending mail through msmtp. --- emacstips.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.43.0