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