help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: authinfo and smtp


From: Richard G Riley
Subject: Re: authinfo and smtp
Date: Mon, 05 Nov 2007 00:34:25 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50.6 (gnu/linux)

me@guillermoamaral.com (Guillermo Antonio Amaral Bastidas) writes:

> Richard G Riley <rileyrgdev@googlemail.com> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]