File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,19 @@ send SMS messages::
195195 #[Route('/login/success')]
196196 public function loginSuccess(TexterInterface $texter): Response
197197 {
198+ $options = (new ProviderOptions())
199+ ->setPriority('high')
200+ ;
201+
198202 $sms = new SmsMessage(
199203 // the phone number to send the SMS message to
200204 '+1411111111',
201205 // the message
202206 'A new login was detected!',
203207 // optionally, you can override default "from" defined in transports
204208 '+1422222222',
209+ // you can also add options object implementing MessageOptionsInterface
210+ $options
205211 );
206212
207213 $sentMessage = $texter->send($sms);
@@ -214,6 +220,10 @@ send SMS messages::
214220
215221 The 3rd argument of ``SmsMessage `` (``$from ``) was introduced in Symfony 6.2.
216222
223+ .. versionadded :: 6.3
224+
225+ The 4th argument of ``SmsMessage `` (``$options ``) was introduced in Symfony 6.3.
226+
217227The ``send() `` method returns a variable of type
218228:class: `Symfony\\ Component\\ Notifier\\ Message\\ SentMessage ` which provides
219229information such as the message ID and the original message contents.
You can’t perform that action at this time.
0 commit comments