GI-210
Adding a validation to just put in pending the emails to send in the creation of a case in gmail cases.
This commit is contained in:
@@ -1017,6 +1017,7 @@ class wsBase
|
||||
);
|
||||
|
||||
$oSpool->create( $messageArray );
|
||||
if ($gmail != 1){
|
||||
$oSpool->sendMail();
|
||||
|
||||
if ($oSpool->status == 'sent') {
|
||||
@@ -1024,7 +1025,9 @@ class wsBase
|
||||
} else {
|
||||
$result = new wsResponse( 29, $oSpool->status . ' ' . $oSpool->error . print_r( $aSetup, 1 ) );
|
||||
}
|
||||
|
||||
} else {
|
||||
$result = "";
|
||||
}
|
||||
return $result;
|
||||
} catch (Exception $e) {
|
||||
return new wsResponse( 100, $e->getMessage() );
|
||||
|
||||
@@ -124,8 +124,6 @@ if ($action == "draft"){
|
||||
curl_setopt( $curlApp, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt( $curlApp, CURLOPT_SSL_VERIFYPEER,false);
|
||||
curl_setopt( $curlApp, CURLOPT_CONNECTTIMEOUT, 0);
|
||||
curl_setopt( $curlApp, CURLOPT_FRESH_CONNECT, true);
|
||||
curl_setopt( $curlApp, CURLOPT_TIMEOUT_MS, 1);
|
||||
|
||||
$curl_response_app = curl_exec( $curlApp );
|
||||
curl_close( $curlApp );
|
||||
|
||||
Reference in New Issue
Block a user