Empty commit

This commit is contained in:
Git 2015-11-01 08:00:28 +00:00
parent 58558082d4
commit fe63c2cee1

View File

@ -50,10 +50,12 @@ public static function send_email($To, $Subject, $Body, $From, $ContentType) {
$RequestResult = curl_exec($Curl);
$RequestStatusCode = curl_getinfo($Curl, CURLINFO_HTTP_CODE);
print_r(curl_error($Curl), true);
curl_close($Curl);
// alert on failed emails
if ($RequestStatusCode != 200) {
send_irc('PRIVMSG '.STATUS_CHAN." !dev email failed to $To with error message $RequestResult");
send_irc('PRIVMSG '.STATUS_CHAN." request status is $RequestStatusCode");
}
break;