]> git.cworth.org Git - notmuch-wiki/commitdiff
Added another way to set the from address automatically when sending mail through...
authoreric casteleijn <eric@eric-Studio-XPS-9100.(none)>
Mon, 23 May 2011 14:04:46 +0000 (10:04 -0400)
committereric casteleijn <eric@eric-Studio-XPS-9100.(none)>
Mon, 23 May 2011 14:04:46 +0000 (10:04 -0400)
emacstips.mdwn

index d3b184edd10cb8613a144dc6e215fa70ddbc6611..3be6ae71a9701e035e1bc46fe2400aed3d8dd97e 100644 (file)
@@ -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.
 
 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)
+
+
 ## <span id="address_completion">Address completion when composing</span>
 
 There are currently two solutions to this:
 ## <span id="address_completion">Address completion when composing</span>
 
 There are currently two solutions to this: