From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.help Subject: Re: authinfo and smtp Date: Mon, 05 Nov 2007 00:34:25 +0100 Message-ID: <5p7382Fpnmo3U1@mid.uni-berlin.de> References: <5p6v66Fp6o4uU1@mid.uni-berlin.de> <878x5dpqbk.fsf@home.guillermoamaral.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194219674 1421 80.91.229.12 (4 Nov 2007 23:41:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2007 23:41:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 00:41:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iop5h-000538-3B for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Nov 2007 00:41:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iop5W-0003jE-K3 for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Nov 2007 18:41:06 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: news.uni-berlin.de EKFm/5PiRtwTrrziLmAdgA+QALf81e3eZVF9jjz1P9N15HcpU= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50.6 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:153533 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49015 Archived-At: me@guillermoamaral.com (Guillermo Antonio Amaral Bastidas) writes: > Richard G Riley writes: > >> I have a few lines of the form >> >> (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587 "accountname" >> "password")) >> >> Could some kind soul possibly provide some elisp to convert this line to >> get the password from the .authinfo file based on that server and >> accountname? >> > > I'm not sure if this is how to do it with 'smtpmail-auth-credentials' > but this is how I do it with 'smtpmail-starttls-credentials'. > > (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587 nil nil))) > > But since your using smtp.gmail.com, you should do something like this: > > (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 25 nil nil))) > > -- .authinfo > > machine smtp.gmail.com > login YOUR_USER_NAME > password YOUR_PASSWORD > force yes > > Hope it helps :-) No because I have multiple accounts for work/play. I need to access a password, and preferably from .authinfo, based on machine name AND login name as I mentioned above.