From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: > 24.3 can't send mail Date: Sat, 07 Feb 2015 16:49:42 +0200 Message-ID: <83d25lbwu1.fsf@gnu.org> References: <87oap5rghv.fsf@gmail.com> <87fvahre1c.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423320605 1933 80.91.229.3 (7 Feb 2015 14:50:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2015 14:50:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 07 15:50:05 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YK6hx-0005SA-0X for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 15:50:05 +0100 Original-Received: from localhost ([::1]:53276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK6hw-0000PN-IC for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 09:50:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK6hm-0000PH-6n for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 09:49:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YK6hi-0006t3-64 for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 09:49:54 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:44539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK6hh-0006se-Tq for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 09:49:50 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NJE00500OR49H00@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 16:46:01 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJE006YZP0O3800@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 16:46:01 +0200 (IST) In-reply-to: <87fvahre1c.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102556 Archived-At: > 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").