From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jakub T. Jankiewicz" Newsgroups: gmane.emacs.help Subject: How to send email from Emacs? Date: Thu, 16 Nov 2023 21:31:08 +0100 Message-ID: <20231116213108.2be93774@jcubic> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37823"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 16 21:41:20 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r3jAu-0009hN-An for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Nov 2023 21:41:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3jAJ-0000Uw-4O; Thu, 16 Nov 2023 15:40:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3jAH-0000SC-0y for help-gnu-emacs@gnu.org; Thu, 16 Nov 2023 15:40:41 -0500 Original-Received: from u1.atthost.pl ([185.255.40.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3jAE-0004kE-L0 for help-gnu-emacs@gnu.org; Thu, 16 Nov 2023 15:40:40 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by u1.atthost.pl (Postfix) with ESMTP id 3EDB1122B5A for ; Thu, 16 Nov 2023 20:31:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at atthost.pl Original-Received: from u1.atthost.pl ([185.255.40.21]) by localhost (atthost.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9h49MuzgJGk9 for ; Thu, 16 Nov 2023 21:31:10 +0100 (CET) Original-Received: from jcubic (unknown [178.218.193.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jcubic@jcubic.pl) by u1.atthost.pl (Postfix) with ESMTPSA id B7D46125D04 for ; Thu, 16 Nov 2023 21:31:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 u1.atthost.pl B7D46125D04 X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) Received-SPF: pass client-ip=185.255.40.21; envelope-from=SRS0=hQo8=G5=jcubic.pl=jcubic@attmail.pl; helo=u1.atthost.pl X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145549 Archived-At: I was searching but I'm not able to find any information about this. I've found some old question "cannot send mail by emacs+gnus" that have the same error as I have: 454 4.7.1 : Relay access denied I have this setup: (setq message-send-mail-function 'smtpmail-send-it) (setq smtpmail-smtp-server "jcubic.") (setq smtpmail-smtp-service 465) (setq user-mail-address "jcubic@") (setq smtpmail-auth-credentials '(("jcubic." 465 "jcubic@" ""))) (setq smtpmail-stream-type 'ssl) (setq smtpmail-debug-info t) And when I send an email I got this: 220 u1.atthost.pl ESMTP Postfix 250-u1.atthost.pl 250-PIPELINING 250-SIZE 1024000000 250-VRFY 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL FROM: SIZE=230 250 2.1.0 Ok RCPT TO: 454 4.7.1 : Relay access denied QUIT 221 2.0.0 Bye Process smtpmail<1> deleted No AUTH LOGIN. I've read in docs that smtpmail-auth-credentials is deprecated and it doesn't have any [documentation][1]. And that you should use ~/.authinfo I've put the info there but it doesn't work. ALso the documentation says that it ask for username/password when it first runs but I didn't asked for anything just fail and try to send email without any credentials. [1]: https://www.gnu.org/software/emacs/manual/html_node/smtpmail/Authentication.html So how should I send an email with SMTP in Emacs? I've bump into that when trying to send bug report. I've send it using my email client eventually but I want to know how to send an email from Emacs. -- Jakub T. Jankiewicz, Senior Front-End Developer https://jcubic.pl/me https://koduj.org