[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how can I toggle smtp auth files
From: |
Philipp Haselwarter |
Subject: |
Re: how can I toggle smtp auth files |
Date: |
Sun, 25 Sep 2011 14:39:55 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Look for multiple gmail accounts on the dev list, the topic has been
discussed exhaustively.
In short, "smtp.gmail.com" is the server name as relevant for gnus,
that'll be the same for both accounts, but you use distinct login
credentials, and auth-info can differentiate between user names. So just
follow the wiki (http://www.emacswiki.org/emacs/MultipleSMTPAccounts)
and use something like this:
.gnus.el:
#+begin_src emacs-lisp
(setq smtp-accounts '((ssl "username_1@gmail.com" "smtp.gmail.com" "587"
"username_1@gmail.com nil)
(ssl "username_2@gmail.com" "smtp.gmail.com" "587"
"username_2@gmail.com nil)))
#+end_src
.authinfo.gpg:
#+begin_src text
machine "smtp.gmail.com" login "username_1@gmail.com" port "587" password "pw_1"
machine "smtp.gmail.com" login "username_2@gmail.com" port "587" password "pw_2"
#+end_src
--
Philipp Haselwarter