Monday, March 13, 2017

can i send sms to the user on my database using laravel and nexmo

I want to make sure before making payment on Nexmo if it possible to send S.M.S to my users on my database using laravel and Nexmo. Because i try doing that and what i got is a Non White-listed Destination - rejected error. or do i have to add all my phone numbers to nexmo database before i can use them or it is because am using the trial version. code for sending message that gives the Non white-listed Error

$nexmo = app('Nexmo\Client');
        $nexmo->message()->send([
        'to' => \Auth::user()->phone,
        'from' => config('app.name', 'Laravel'),
        'text' => 'Text message Sent From '.config('app.name', 'Laravel').' To confrim that this is your Phone Number.'
        ]);



via dagogodboss

Advertisement