Commit 25ef8fef authored by John Red Medrano's avatar John Red Medrano

fixing email

parent dd1aaf29
......@@ -89,6 +89,8 @@ class CMSSettingsViewSet(viewsets.ModelViewSet):
code=str(data['behalf_user'])
)
print(recipient)
args = [recipient.name, action, active_user, recipient.email, admin]
main_threading(args, sender.on_behalf)
......
......@@ -609,6 +609,10 @@ def on_behalf(args):
F = open(os.path.join(settings.EMAIL_TEMPLATES_ROOT, 'RMS-ONBEHALF.html'), 'r')
print("wwww")
print(args)
FC = F.read()
FC = FC.replace('{name}', name)
......
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