Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Sending emails from multiple accounts on same smtp server
@ 2016-02-16 17:23 Sivaram Neelakantan
  2016-02-16 19:32 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Sivaram Neelakantan @ 2016-02-16 17:23 UTC (permalink / raw)
  To: info-gnus-english

I have an authinfo file of the following format

machine smtp.gmail.com login nsivaramxxxt@gmail.com password xxx port 587
machine smtp.gmail.com login shanxxxxx@gmail.com password xxx  port 587

Depending on the group I'm in, I'd like it to use one or the other
account.  I thought using a setup like

	(".*python\\.*" 
	 (visible . t) 
	 (display . all) 
	 (posting-style 
	  (address "nsivaramxxx@gmail.com") 
	  (name "Sivaram Neelakantan") 
	  (body "\n\nsivaram\n-- \n") 
	  (user-mail-address "nsivaramxxx@gmail.com"))) 

in posting styles would choose the right smtp id to send from authinfo
but it doesn't seem to do that. Sometimes I see one or the other email
FROM header depending on which group I entered first

Any advice on how to make it choose the right smtp account based on
address? and set the appropriate headers?

sivaram
-- 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-16 19:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-16 17:23 Sending emails from multiple accounts on same smtp server Sivaram Neelakantan
2016-02-16 19:32 ` Eric S Fraga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).