@@ -1017,14 +1017,17 @@ class wsBase
|
|||||||
);
|
);
|
||||||
|
|
||||||
$oSpool->create( $messageArray );
|
$oSpool->create( $messageArray );
|
||||||
$oSpool->sendMail();
|
if ($gmail != 1){
|
||||||
|
$oSpool->sendMail();
|
||||||
|
|
||||||
if ($oSpool->status == 'sent') {
|
if ($oSpool->status == 'sent') {
|
||||||
$result = new wsResponse( 0, G::loadTranslation( 'ID_MESSAGE_SENT' ) . ": " . $sTo );
|
$result = new wsResponse( 0, G::loadTranslation( 'ID_MESSAGE_SENT' ) . ": " . $sTo );
|
||||||
|
} else {
|
||||||
|
$result = new wsResponse( 29, $oSpool->status . ' ' . $oSpool->error . print_r( $aSetup, 1 ) );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$result = new wsResponse( 29, $oSpool->status . ' ' . $oSpool->error . print_r( $aSetup, 1 ) );
|
$result = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return new wsResponse( 100, $e->getMessage() );
|
return new wsResponse( 100, $e->getMessage() );
|
||||||
|
|||||||
@@ -124,8 +124,6 @@ if ($action == "draft"){
|
|||||||
curl_setopt( $curlApp, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt( $curlApp, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt( $curlApp, CURLOPT_SSL_VERIFYPEER,false);
|
curl_setopt( $curlApp, CURLOPT_SSL_VERIFYPEER,false);
|
||||||
curl_setopt( $curlApp, CURLOPT_CONNECTTIMEOUT, 0);
|
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_response_app = curl_exec( $curlApp );
|
||||||
curl_close( $curlApp );
|
curl_close( $curlApp );
|
||||||
|
|||||||
Reference in New Issue
Block a user