mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-02 02:57:56 +00:00
Fix the annonucement feature by sending mail to the proper smtp server, fixes #309
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user