Tell me how I can send an email to the mailbox on the local server. Django works on localhost: 8080 to send (as read in the documentation) you need an SMTP server. I also run local
python -m smtpd -n -c DebuggingServer localhost:1025 I receive localhost: 1025 in a vyy
send_mail('theme', 'my messege', 'admins@studio.ru', ['a@a.ru']) caught various errors, for example with getaddrinfo (host, port) added to the view
import socket socket.getaddrinfo('localhost', 8080) now error [Errno 11004] getaddrinfo failed
(code, msg) = self.connect(host, port) I don’t know how to tune (newbie) at all and wrote in the settings:
EMAIL_HOST = 'localhost:8080' EMAIL_HOST_USER = 'username@domain.ru' EMAIL_HOST_PASSWORD = '' EMAIL_PORT = 1025 u true to the setting problem. Tell me how to set everything up correctly?