diff options
author | Akshen | 2017-04-05 17:39:11 +0530 |
---|---|---|
committer | Akshen | 2017-05-19 15:30:31 +0530 |
commit | ee1df45a5ead61691175009d2f6a93c95f31f5ad (patch) | |
tree | 1485e528f2a7116c5d04a16f6269a2489a7948d4 /workshop_app/send_mails.py | |
parent | b4936905e74ab6c4ba5fdbd5c400dd2d15269ff0 (diff) | |
download | workshop_booking-ee1df45a5ead61691175009d2f6a93c95f31f5ad.tar.gz workshop_booking-ee1df45a5ead61691175009d2f6a93c95f31f5ad.tar.bz2 workshop_booking-ee1df45a5ead61691175009d2f6a93c95f31f5ad.zip |
Booking View Done
ToDo email sending for both users
Diffstat (limited to 'workshop_app/send_mails.py')
-rw-r--r-- | workshop_app/send_mails.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/workshop_app/send_mails.py b/workshop_app/send_mails.py index 4eff778..0d4173b 100644 --- a/workshop_app/send_mails.py +++ b/workshop_app/send_mails.py @@ -7,7 +7,10 @@ from workshop_portal.settings import ( EMAIL_USE_TLS ) -def send_email(request, call_on, user_position=None): +def send_email(request, call_on, + user_position=None, workshop_date=None, + workshop_title=None, user_name=None + ): ''' Email sending function while registration and booking confirmation. @@ -38,7 +41,8 @@ def send_email(request, call_on, user_position=None): elif call_on == 'Booking': if user_position == 'instructor': message = 'You got a workshop booking request \ - from user name ' + from ' + user_name + ' for \ + ' + workshop_title + ' on ' + workshop_date + ' please respond.' send_mail( 'Python Workshop Booking | FOSSEE', message, EMAIL_HOST_USER, [request.user.email], fail_silently=False @@ -46,7 +50,7 @@ def send_email(request, call_on, user_position=None): else: message = 'Thank You for Booking on this platform.\n \ - Rules to be added \ + ' + user_name +' \ If you face any issue during your session please contact \ fossee.' send_mail( |