diff --git a/src/psm/Txtmsg/OVHsms.php b/src/psm/Txtmsg/OVHsms.php index 97abdb22..8d0af2d5 100644 --- a/src/psm/Txtmsg/OVHsms.php +++ b/src/psm/Txtmsg/OVHsms.php @@ -34,8 +34,10 @@ namespace psm\Txtmsg; class OVHsms extends Core { /** - * Send sms using the OVH API + * Send sms using the OVH http2sms gateway + * Online documentation :https://docs.ovh.com/fr/sms/envoyer_des_sms_depuis_une_url_-_http2sms/ * Ovh need Account and Login, then use format login@account in username field. + * * @var string $message * @var string $this->username * @var string $this->password @@ -85,7 +87,6 @@ class OVHsms extends Core { $xmlResults = simplexml_load_string($result); $err = curl_errno($curl); - if ($err != 0 || $httpcode != 200 || $xmlResults === false ||($xmlResults->status != '100' && $xmlResults->status != '101')) { $success = 0; $error = "HTTP_code: ".$httpcode.".\ncURL error (".$err."): ".curl_strerror($err).". \nResult: ".$xmlResults->status." \n".$xmlResults->Message;