【发布时间】:2021-09-08 21:41:07
【问题描述】:
我在 Symfony 中使用 Twilio 发送 SMS 消息。 SMS 消息包含一个 URL
例如。
$message = "
Buy soap \n
https://evernote.com/features/notes-app";
/*
*
* @return Response
* @throws \Twilio\Exceptions\TwilioException
*/
public function sendSMS(string $toPhoneNumber, string $message){
$this->client->messages->create($toPhoneNumber, [
"body" => $message,
"from" => $this->twilioNumber
]);
}
每次我附加收到的 URL 错误 - 30008 消息传递 - 未知错误
如何对消息进行编码以便发送嵌入的 URL?
【问题讨论】: