diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php index 0735acfd64..b751172418 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php @@ -26,14 +26,13 @@ use Symfony\Contracts\HttpClient\HttpClientInterface; */ final class LightSmsTransport extends AbstractTransport { - protected const HOST = 'www.lightsms.com'; + protected const HOST = 'lightsms.com'; private $login; private $password; private $from; private const ERROR_CODES = [ - 000 => 'Service unavailable', 1 => 'Missing Signature', 2 => 'Login not specified', 3 => 'Text not specified', @@ -119,6 +118,8 @@ final class LightSmsTransport extends AbstractTransport $content = $response->toArray(false); + dump($content); die(); + // it happens if the host without www if (isset($content['']) && isset($content['']['error'])) { throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['']['error']], $response);