Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions lib/CareerPortal.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,13 +458,24 @@ public function sendEmail($userID, $destination, $subject, $body)

/* Send e-mail notification. */
//FIXME: Make subject configurable.
$mailer = new Mailer($this->_siteID, $userID);
$mailerStatus = $mailer->sendToOne(
array($destination, ''),
$subject,
$body,
true
);
try
{
$mailer = new Mailer($this->_siteID, $userID);
$mailer->sendToOne(
array($destination, ''),
$subject,
$body,
true
);
}
catch (\PHPMailer\PHPMailer\Exception $e)
{
// Mail not configured or unavailable - log and continue
error_log(
'OpenCATS CareerPortal mail error (site=' . $this->_siteID . '): '
. get_class($e) . ' [' . $e->getCode() . ']'
);
}
}
}

Expand Down