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 11:26:48 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Thanks for your help and suggestions. I managed to get it to send an email with 
one of my hosted smtp servers; I never did get it to work with the gmail smtp 
servers, though; it just seems to wait indefinitely and C-g brings the TLS 
error. I submitted a bug report for those. And I'm a far-cry from getting it 
going with my other half-dozen email addresses. Looks like I'll be sitting with 
24.3 for a while. 

Thanks again, 
- Tory

Eli Zaretskii <eliz@gnu.org> writes:

>> 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]