From 978fa39e512c8fc9edce34bb9a714c1c99bbeee2 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 23 Oct 2018 16:52:10 +0530 Subject: uncommented the mail function --- workshop_registration_process.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workshop_registration_process.inc b/workshop_registration_process.inc index e400188..28655de 100644 --- a/workshop_registration_process.inc +++ b/workshop_registration_process.inc @@ -400,8 +400,8 @@ function osdag_workshop_booking_proposal_approval_form_submit($form, &$form_stat 'Cc' => $cc, 'Bcc' => $bcc ); - // if (!drupal_mail('osdag_workshop_booking', 'proposal_disapproved', $email_to, language_default(), $params, $from, TRUE)) - // drupal_set_message('Error sending email message.', 'error'); + if (!drupal_mail('osdag_workshop_booking', 'proposal_disapproved', $email_to, language_default(), $params, $from, TRUE)) + drupal_set_message('Error sending email message.', 'error'); drupal_set_message('Proposal dis-approved. User has been notified of the dis-approval.', 'error'); drupal_goto('osdag-workshop-booking/manage-proposal'); @@ -434,8 +434,8 @@ function osdag_workshop_booking_proposal_approval_form_submit($form, &$form_stat 'Cc' => $cc, 'Bcc' => $bcc ); - // if (!drupal_mail('osdag_workshop_booking', 'proposal_approved', $email_to, language_default(), $params, $from, TRUE)) - // drupal_set_message('Error sending email message.', 'error'); + if (!drupal_mail('osdag_workshop_booking', 'proposal_approved', $email_to, language_default(), $params, $from, TRUE)) + drupal_set_message('Error sending email message.', 'error'); drupal_set_message('Proposal approved. User has been notified of the approval', 'status'); drupal_goto('osdag-workshop-booking/manage-proposal'); -- cgit