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

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

Re: > 24.3 can't send mail


From: Eli Zaretskii
Subject: Re: > 24.3 can't send mail
Date: Sat, 07 Feb 2015 16:49:42 +0200

> From: torys.anderson@gmail.com (Tory S. Anderson)
> Date: Sat, 07 Feb 2015 09:29:03 -0500
> 
> I should add that the setup I'm using for mail, which has worked for years 
> prior to 24.4+, is mostly borrowed from the emacs page 
> http://www.emacswiki.org/emacs/SendingMail. To be precise, my source is this: 
> 
> --8<---------------cut here---------------start------------->8---
> (defvar smtp-accounts
>   '(
>     (ssl "torys.anderson@gmail.com" "smtp.gmail.com"
>        587 "torys.anderson@gmail.com" secret) ;; Public
> ;; other accounts omitted
>     ))
> 
> 
> ;; Now lets configure smtpmail.el with your name and functions to send
> ;; mail using your smtp accounts by changing the from field
> (require 'smtpmail)
> (setq send-mail-function 'smtpmail-send-it
>       message-send-mail-function 'smtpmail-send-it
>       mail-from-style nil user-full-name "Tory S. Anderson"
>       smtpmail-debug-info t smtpmail-debug-verb t)
> 
> (defun set-smtp (mech server port user password)
>   "Set related SMTP variables for supplied parameters."
>   (setq smtpmail-smtp-server server smtpmail-smtp-service port
>       smtpmail-auth-credentials (list (list server port user
>                                             password)) 
> smtpmail-auth-supported (list mech)
>                                             smtpmail-starttls-credentials nil)
>   (message "Setting SMTP server to `%s:%s' for user `%s'."
>          server port user))

I think the problem is with smtpmail-auth-credentials and
smtpmail-starttls-credentials: in Emacs 24 you need to set that in
your ~/.authinfo file.  See etc/NEWS for the details (search for
"SMTPmail").



reply via email to

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