* authinfo and smtp
@ 2007-11-04 22:25 Richard G Riley
2007-11-04 23:02 ` Guillermo Antonio Amaral Bastidas
0 siblings, 1 reply; 3+ messages in thread
From: Richard G Riley @ 2007-11-04 22:25 UTC (permalink / raw)
To: help-gnu-emacs
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: authinfo and smtp
2007-11-04 22:25 authinfo and smtp Richard G Riley
@ 2007-11-04 23:02 ` Guillermo Antonio Amaral Bastidas
2007-11-04 23:34 ` Richard G Riley
0 siblings, 1 reply; 3+ messages in thread
From: Guillermo Antonio Amaral Bastidas @ 2007-11-04 23:02 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 1002 bytes --]
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 :-)
--
Guillermo Antonio Amaral Bastidas (gamaral)
Free/Libre/Open-Source Software Advocate & KDE Developer
http://blog.guillermoamaral.com/
[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: authinfo and smtp
2007-11-04 23:02 ` Guillermo Antonio Amaral Bastidas
@ 2007-11-04 23:34 ` Richard G Riley
0 siblings, 0 replies; 3+ messages in thread
From: Richard G Riley @ 2007-11-04 23:34 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-11-04 23:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-04 22:25 authinfo and smtp Richard G Riley
2007-11-04 23:02 ` Guillermo Antonio Amaral Bastidas
2007-11-04 23:34 ` Richard G Riley
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.