Skip to content
Snippets Groups Projects
Commit bc667bca authored by Brett Bieber's avatar Brett Bieber
Browse files

make sure the endorsements are being sent

parent a6d76af2
Branches
No related tags found
No related merge requests found
...@@ -110,10 +110,19 @@ You will be asked to comment on the ability of the student to carry out the prop ...@@ -110,10 +110,19 @@ You will be asked to comment on the ability of the student to carry out the prop
You must log in using your My.UNL (Blackboard) username and password to complete the application. Access the application at the link below:<br /> You must log in using your My.UNL (Blackboard) username and password to complete the application. Access the application at the link below:<br />
<a href="'.UNL_UCARE_Controller::getURL().'?view=sponsor">'.UNL_UCARE_Controller::getURL().'?view=sponsor</a></p>'; <a href="'.UNL_UCARE_Controller::getURL().'?view=sponsor">'.UNL_UCARE_Controller::getURL().'?view=sponsor</a></p>';
$pf = new UNL_Peoplefinder(); $mail = 'ldamuth1@unl.edu';
$sponsor = $pf->getUID($this->sponsor_uid);
UNL_UCARE_Controller::sendHTMLEmail($sponsor->mail, 'UCARE Application', $text); if ($sponsor = json_decode(file_get_contents('http://peoplefinder.unl.edu/?uid='.$this->sponsor_uid.'&format=json'), true)) {
if (isset($sponsor['mail'])) {
if (is_array($sponsor['mail'])) {
$mail = $sponsor['mail'][0];
} else {
$mail = $sponsor['mail'];
}
}
}
UNL_UCARE_Controller::sendHTMLEmail($mail, 'UCARE Application', $text);
} }
function emailApplicant() function emailApplicant()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment