Set $from to use env variable + update ref link
This commit is contained in:
parent
f63c1c95fe
commit
313fd5582a
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@ namespace Appwrite\Auth\Phone;
|
||||||
use Appwrite\Auth\Phone;
|
use Appwrite\Auth\Phone;
|
||||||
|
|
||||||
// Reference Material
|
// Reference Material
|
||||||
// https://dashboard.nexmo.com/getting-started/sms
|
// https://developer.vonage.com/api/sms
|
||||||
|
|
||||||
class Vonage extends Phone
|
class Vonage extends Phone
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,6 @@ class Vonage extends Phone
|
||||||
public function send(string $from, string $to, string $message): void
|
public function send(string $from, string $to, string $message): void
|
||||||
{
|
{
|
||||||
$to = ltrim($to, '+');
|
$to = ltrim($to, '+');
|
||||||
$from = "Appwrite";
|
|
||||||
$headers = ['Content-Type: application/x-www-form-urlencoded'];
|
$headers = ['Content-Type: application/x-www-form-urlencoded'];
|
||||||
|
|
||||||
$this->request(
|
$this->request(
|
||||||
|
|
Loading…
Reference in a new issue