On 2022-12-09 23:14, Björn Bidar wrote:
Do you really need to add the credentials here?
no,its temporary solution.
i am setting up slowly and incrementally...
right now, connection error is resolved,
able to send emails (did not setup anything
fancy).
Try without them so
smptmail will try to use auth-source to retrieve the credentials.
These are my smtpmail settings:
(use-package smtpmail
added (require 'smtpmail) to ~/.emacs.
i receive error:
Debugger entered--Lisp error: (void-function use-package)
(use-package smtpmail :config (setq smtpmail-default-smtp-server
"disroot.org" smtpmail-smtp-server "disroot.org" smtpmail-smtp-service
"465" smtpmail-stream-type 'ssl smtpmail-servers-requiring-authorization
".*"))
eval-buffer(#<buffer *load*> nil "/home/jin/.gnus" nil t) ; Reading
at buffer position 795
load-with-code-conversion("/home/jin/.gnus" "/home/jin/.gnus" nil t)
load("~/.gnus" nil t)
gnus-read-init-file()
gnus-1(nil nil nil)
gnus(nil)
funcall-interactively(gnus nil)
call-interactively(gnus record nil)
command-execute(gnus record)
execute-extended-command(nil "gnus" "gnu")
funcall-interactively(execute-extended-command nil "gnus" "gnu")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
are you referring to smtpmail-multi on melpa?(1)
:config
(setq smtpmail-default-smtp-server "smtp.server.de"
smtpmail-smtp-server "smtp.server.de"
smtpmail-smtp-service "465"
smtpmail-stream-type 'ssl
smtpmail-servers-requiring-authorization ".*"))
For me these work like this, smtpmail will try to retrieve the
localdomain and sendto-domain by itself.
If you add either to the hosts file they should be fine.
added 178.21.23.139 disroot.org to /etc/hosts
jin@localhost:~$ nslookup disroot.org
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: disroot.org
Address: 178.21.23.139
(1) https://melpa.org/#/smtpmail-multi
regards,
jindam, vani
--
toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani