Advertisement
angelgoitia

Untitled

Oct 7th, 2024
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. $curl = curl_init();
  2.    
  3. curl_setopt_array($curl, array(
  4.     CURLOPT_URL => 'https://smsv3.mensajesms.com.ve/api/v1/sendsms',
  5.     CURLOPT_RETURNTRANSFER => true,
  6.     CURLOPT_ENCODING => '',
  7.     CURLOPT_MAXREDIRS => 10,
  8.     CURLOPT_TIMEOUT => 0,
  9.     CURLOPT_FOLLOWLOCATION => true,
  10.     CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  11.     CURLOPT_CUSTOMREQUEST => 'POST',
  12.     CURLOPT_POSTFIELDS => array('token' => env('KEY_SMS'),'user' => env('USER_SMS'),'celular' => $phone,'mensaje' => $msg),
  13. ));
  14. $response = curl_exec($curl);
  15.  
  16. curl_close($curl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement