Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a3fe6 commit a0e83edCopy full SHA for a0e83ed
1 file changed
SinchTransport.php
@@ -57,13 +57,11 @@ protected function doSend(MessageInterface $message): SentMessage
57
throw new UnsupportedMessageTypeException(__CLASS__, SmsMessage::class, $message);
58
}
59
60
- $from = $message->getFrom() ?: $this->from;
61
-
62
$endpoint = sprintf('https://%s/xms/v1/%s/batches', $this->getEndpoint(), $this->accountSid);
63
$response = $this->client->request('POST', $endpoint, [
64
'auth_bearer' => $this->authToken,
65
'json' => [
66
- 'from' => $from,
+ 'from' => $message->getFrom() ?: $this->from,
67
'to' => [$message->getPhone()],
68
'body' => $message->getSubject(),
69
],
0 commit comments