From e9813f99bf901da24235b767b5cd54344e85c545 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Tue, 7 Nov 2017 17:21:32 +0100 Subject: [PATCH] Fix the annonucement feature by sending mail to the proper smtp server, fixes #309 --- core/admin/mailu/ui/views/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/ui/views/base.py b/core/admin/mailu/ui/views/base.py index eae240e..8a5fe37 100644 --- a/core/admin/mailu/ui/views/base.py +++ b/core/admin/mailu/ui/views/base.py @@ -54,7 +54,7 @@ def announcement(): app.config['POSTMASTER'], app.config['DOMAIN']) form = forms.AnnouncementForm() if form.validate_on_submit(): - with smtplib.SMTP('smtp') as smtp: + with smtplib.SMTP('smtp', port=10025) as smtp: for recipient in [user.email for user in models.User.query.all()]: msg = text.MIMEText(form.announcement_body.data) msg['Subject'] = form.announcement_subject.data