all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jakub T. Jankiewicz" <jcubic@jcubic.pl>
To: help-gnu-emacs@gnu.org
Subject: How to send email from Emacs?
Date: Thu, 16 Nov 2023 21:31:08 +0100	[thread overview]
Message-ID: <20231116213108.2be93774@jcubic> (raw)

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 <jcubic@onet.pl>: Relay access denied

I have this setup:


(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-smtp-server "jcubic.<server>")
(setq smtpmail-smtp-service 465)
(setq user-mail-address "jcubic@<server>")
(setq smtpmail-auth-credentials
      '(("jcubic.<server>" 465 "jcubic@<server>" "<password>")))
(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:<jcubic@jcubic.pl> SIZE=230
250 2.1.0 Ok
RCPT TO:<jcubic@onet.pl>
454 4.7.1 <jcubic@onet.pl>: 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



             reply	other threads:[~2023-11-16 20:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16 20:31 Jakub T. Jankiewicz [this message]
2023-11-16 22:18 ` How to send email from Emacs? Michel Verdier
2023-11-18  9:56 ` Dieter Klünter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231116213108.2be93774@jcubic \
    --to=jcubic@jcubic.pl \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.