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: Tory S. Anderson
Subject: Re: > 24.3 can't send mail
Date: Sat, 07 Feb 2015 10:31:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

I think you're on to something, Eli. I see a daunting amount on smtp changes in 
the news files. Unfortunately, I'm not sure what to do next. I went so far as 
to comment-out everything you see below and then fired up the new emacs (my 
.authinfo file still exists unchanged); upon trying to send mail I seemed to 
make progress when it asked what outgoing server I wanted, but after specifying 
smtp.gmail.com, it seemed to freeze; one C-g later and it gave me the same old 
TLS error. 

Does anyone have an example of a working smtp setup in emacs >24.3? 

Eli Zaretskii <address@hidden> writes:

>> From: address@hidden (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 "address@hidden" "smtp.gmail.com"
>>       587 "address@hidden" 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]