From 486794d3a90951495a68449fc95902a6b53cf3cc Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 22 Jan 2015 15:06:32 +0100 Subject: [PATCH] Fix email address in comment --- pgcommitfest/auth.py | 2 +- pgcommitfest/mailqueue/util.py | 4 ++-- pgcommitfest/userprofile/views.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pgcommitfest/auth.py b/pgcommitfest/auth.py index 769ebab..b17efd8 100644 --- a/pgcommitfest/auth.py +++ b/pgcommitfest/auth.py @@ -130,7 +130,7 @@ def auth_receive(request): a different username than %s. This is almost certainly caused by some legacy data in our database. -Please send an email to webmaster@postgresql.eu, indicating the username +Please send an email to webmaster@postgresql.org, indicating the username and email address from above, and we'll manually marge the two accounts for you. diff --git a/pgcommitfest/mailqueue/util.py b/pgcommitfest/mailqueue/util.py index 38e1145..525f068 100644 --- a/pgcommitfest/mailqueue/util.py +++ b/pgcommitfest/mailqueue/util.py @@ -39,7 +39,7 @@ def send_mail(sender, receiver, fullmsg): # Send an email, prepared as the full MIME encoded mail already QueuedMail(sender=sender, receiver=receiver, fullmsg=fullmsg).save() -def send_template_mail(sender, receiver, subject, templatename, templateattr={}, usergenerated=False): +def send_template_mail(sender, senderaccountname, receiver, subject, templatename, templateattr={}, usergenerated=False): send_simple_mail(sender, receiver, subject, get_template(templatename).render(Context(templateattr)), - '__internal') + senderaccountname) diff --git a/pgcommitfest/userprofile/views.py b/pgcommitfest/userprofile/views.py index 0d19a4f..6b7499d 100644 --- a/pgcommitfest/userprofile/views.py +++ b/pgcommitfest/userprofile/views.py @@ -37,6 +37,7 @@ def userprofile(request): tokensent=datetime.now()) m.save() send_template_mail(settings.NOTIFICATION_FROM, + request.user.username, m.email, 'Your email address for commitfest.postgresql.org', 'extra_email_mail.txt', -- 2.39.5