summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-05-21 12:13:29 +0530
committerSashi202019-05-21 12:13:29 +0530
commit649b0243c573d6b1acd4f1d623755d52ea6c0e57 (patch)
treecf93f16b09fd1313b00b310652689d7f36cc0193
parentfdf46b01d2b4a42f136dc0fc871d67c1e068e271 (diff)
downloadopenmodelica_textbook_companion-649b0243c573d6b1acd4f1d623755d52ea6c0e57.tar.gz
openmodelica_textbook_companion-649b0243c573d6b1acd4f1d623755d52ea6c0e57.tar.bz2
openmodelica_textbook_companion-649b0243c573d6b1acd4f1d623755d52ea6c0e57.zip
Add email headers for enabling code submission
-rwxr-xr-xmanage_proposal.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc
index 8bbc6aa..fdbde04 100755
--- a/manage_proposal.inc
+++ b/manage_proposal.inc
@@ -810,6 +810,9 @@ function proposal_status_form_submit($form, &$form_state)
$num_updated = $query->execute();
/* sending email */
$book_user = user_load($proposal_data->uid);
+ $from = variable_get('textbook_companion_from_email', '');
+ $bcc = variable_get('textbook_companion_emails', '');
+ $cc = variable_get('textbook_companion_cc_emails', '');
$params['all_code_submitted_status_changed']['proposal_id'] = $proposal_id;
$params['all_code_submitted_status_changed']['user_id'] = $proposal_data->uid;
$param['all_code_submitted_status_changed']['headers'] = array(
@@ -821,6 +824,7 @@ function proposal_status_form_submit($form, &$form_state)
'Cc' => $cc,
'Bcc' => $bcc
);
+
$email_to = $book_user->mail;
if (!drupal_mail('textbook_companion', 'all_code_submitted_status_changed', $email_to, language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');