1

我正在使用 Laravel-4-Nexmo 包发送短信,但消息在发送时被编码。

$receiverNumber = "xxxxxxxxxxx"
$message       = "hi from nexmo ? ";
$options        = array( 'status-report-req'  => 1 );

$Nexmo = Nexmo::sendSMS('me', $receiverNumber , $message , $options);

收到的消息如下所示:

hi+from+nexmo+%3F+

我想收到

hi from nexmo ? 

我期待看到可能的解决方案

4

2 回答 2

0

可能提到的包没有编码给定的消息,所以你应该urlencode($yourString)在使用包之前使用

于 2015-03-18T12:00:53.923 回答
0

我不知道我上面的代码有什么问题,我决定使用类似的包,它现在可以工作了。你可以在这里找到包https://github.com/Artistan/nexmo

于 2015-03-19T12:07:58.183 回答