From 114fd7636d2e9b821d3f8cae8eb288f49eae98b5 Mon Sep 17 00:00:00 2001 From: Akshen Date: Wed, 7 Jun 2017 12:44:26 +0530 Subject: Fixes old datesview - Previous dates which are not booked won't be shown to coordinator and instructor - Email sending to coordinator with attachments fixed - Contact Us email changed in Homepage --- workshop_app/send_mails.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'workshop_app/send_mails.py') diff --git a/workshop_app/send_mails.py b/workshop_app/send_mails.py index a4e1e52..9c3e732 100644 --- a/workshop_app/send_mails.py +++ b/workshop_app/send_mails.py @@ -267,7 +267,7 @@ def send_email( request, call_on, subject = "FOSSEE Workshop booking confirmation on {0}".\ format(workshop_date) - msg = EmailMultiAlternatives(subject, message, SENDER_EMAIL, [request.user.email]) + msg = EmailMultiAlternatives(subject, message, SENDER_EMAIL, [other_email]) files = listdir(settings.MEDIA_ROOT) for f in files: @@ -344,9 +344,3 @@ def send_email( request, call_on, format(workshop_date), message=message, other_email=request.user.email ) - - else: - message = "Issue at Workshop Booking App please check" - send_mail("Issue At Workshop Booking App Mailing", message, SENDER_EMAIL, - ['your developer id'], fail_silently=False) - -- cgit