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 db2b5a4 commit 8d5a9f1Copy full SHA for 8d5a9f1
src/Message.php
@@ -213,13 +213,14 @@ public function setIsMarketing($isMarketing)
213
* Set the sender of the message after checking it is a valid sender
214
*
215
* @param string $sender sender of the message
216
+ * @param string $check check the sender and throw exception if not configured
217
218
* @return void
219
* @throws \Ovh\Exceptions\InvalidParameterException if sender is invalid
220
*/
- public function setSender($sender)
221
+ public function setSender($sender, $check = true)
222
{
- if (!$this->Sms->checkSender($sender)) {
223
+ if ($check && !$this->Sms->checkSender($sender)) {
224
throw new \Ovh\Exceptions\InvalidParameterException("Sender parameter is invalid");
225
}
226
0 commit comments