mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 04:01:35 +00:00
Empty commit
This commit is contained in:
parent
58558082d4
commit
fe63c2cee1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user