Text Tester
‘+1’ . str_replace(‘-‘, ”, $to),
‘From’ => ‘+1’ . str_replace(‘-‘, ”, $from),
‘Body’ => $message
);
$username = ‘AC1c61746802148e4276d2dcc0a975023f’;
$password = ‘fd96ba79724d1564123206dd18413e5d’;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_USERPWD, $username . ‘:’ . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo “Message sent successfully!”;
}
?>