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

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

Re: authinfo and smtp


From: Guillermo Antonio Amaral Bastidas
Subject: Re: authinfo and smtp
Date: Sun, 04 Nov 2007 15:02:23 -0800
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

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: pgp_fbkdXTlFM.pgp
Description: PGP signature


reply via email to

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