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 1544a18 commit d627e1cCopy full SHA for d627e1c
notifier/texters.rst
@@ -23,7 +23,9 @@ you to send SMS messages::
23
// the phone number to send the SMS message to
24
'+1411111111',
25
// the message
26
- 'A new login was detected!'
+ 'A new login was detected!',
27
+ // optionally, you can override default "from" defined in transports
28
+ '+1422222222',
29
);
30
31
$sentMessage = $texter->send($sms);
@@ -32,6 +34,10 @@ you to send SMS messages::
32
34
}
33
35
36
37
+.. versionadded:: 6.2
38
+
39
+ The 3rd argument of ``SmsMessage`` (``$from``) was introduced in Symfony 6.2.
40
41
The ``send()`` method returns a variable of type
42
:class:`Symfony\\Component\\Notifier\\Message\\SentMessage` which provides
43
information such as the message ID and the original message contents.
0 commit comments