Skip to content
Snippets Groups Projects
Verified Commit e31e4342 authored by Tanner Prestegard's avatar Tanner Prestegard
Browse files

Bugfix: always use settings.ALERT_EMAIL_FROM for sending emails

parent d5241b88
No related branches found
No related tags found
No related merge requests found
......@@ -201,8 +201,8 @@ def testContact(request, id):
.format(c.desc, hostname)
msg = ('This is a test of contact "{0}" from '
'https://{1}.ligo.org.').format(c.desc, hostname)
email = EmailMessage(subject, msg, settings.SERVER_EMAIL,
[c.email], [])
email = EmailMessage(subject, msg,
from_email=settings.ALERT_EMAIL_FROM, to=[c.email])
email.send()
log.debug('Sent test e-mail to {0}'.format(c.email))
except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment