Commit 93dddf00 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

pass additional information in context to welcome email template

parent bc00574b
......@@ -254,12 +254,15 @@ class WelcomeSocial(LoginRequiredMixin, StudentContextMixin, FormView):
today = date.today()
semester = "%s %s" % (get_semester(today), today.strftime('%Y'))
subject = "Welcome to Roomlist, %s" % me.get_first_name_or_uname()
context = {
'subject': subject,
'student_name': me.get_first_name_or_uname,
'semester': semester
'semester': semester,
'signature': ':-)',
}
subject = "Welcome to Roomlist, %s" % me.get_first_name_or_uname()
to = me.user.email
welcome_email = create_email(text_path, html_path, subject, to, context)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment