重複の可能性:
WebアプリケーションからのSMS
誰かが私のウェブサイトを通してSMSを送信する方法を私に提案できますか?それは良いものです
CellTrust などの SMS サービスを Web サイトに統合すると、SMS を送信できるようになります。私はそのように笑顔の仕事をしました....
public function smsSend($number,$temppwd)
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,"https://gateway.celltrust.net/TxTNotify/TxTNotify?");
curl_setopt($curl, CURLOPT_POSTFIELDS, "Username=xxxxx&Password=xxxx&CustomerNickname=xxxxxx&PhoneDestination=".$number."&%20CarrierId%20=5&Message=Hello, Your verification code is: ".$temppwd.". Thank you&XMLResponse=true");
curl_setopt($curl, CURLOPT_HEADER, TRUE);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
$head=curl_exec ($curl);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
}