Fix the annonucement feature by sending mail to the proper smtp server, fixes #309

master
kaiyou 7 years ago
parent bfa50c5aa7
commit e9813f99bf

@ -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

Loading…
Cancel
Save