From e76e857ae75034ac8c6ccff57df6157379850c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vet=C3=A9si=20Zolt=C3=A1n?= Date: Wed, 11 Jan 2023 18:05:19 +0100 Subject: [PATCH] Fix smtplib.LMTP wrong argument name: ip -> host --- core/admin/mailu/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index f9fabb7f..8022709b 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -421,7 +421,7 @@ class Email(object): """ send an email to the address """ try: f_addr = f'{app.config["POSTMASTER"]}@{idna.encode(app.config["DOMAIN"]).decode("ascii")}' - with smtplib.LMTP(ip=app.config['IMAP_ADDRESS'], port=2525) as lmtp: + with smtplib.LMTP(host=app.config['IMAP_ADDRESS'], port=2525) as lmtp: to_address = f'{self.localpart}@{idna.encode(self.domain_name).decode("ascii")}' msg = text.MIMEText(body) msg['Subject'] = subject