我有一个用户填写和注册的在线表格。我希望他们收到短信提醒,通知他们注册成功。我也有一个路由 API。
当您在浏览器中键入此链接时:
它被传递到 2348936454 并返回消息传递报告。
这是我的代码,它不会导致收到短信:
//Send SMS and Email Here
define('jit_user','nem-piro');
define('jit_pwd','xxxxxx');
define('enable_sms',1);
define('credit_load',5);
define('smssenderid',"SampleID");
if(enable_sms){
$jit_user = jit_user;
$jit_pwd = jit_pwd;
$mobile = $data->mobile;
$smsBody ="Hello {$surname} {$othername}, your registration was successful. Thank you!";
$smsSender = smssenderid;
$link = "http://sms.brantilo.com:8080/bulksms/bulksms?username={$jit_user}&password={$jit_pwd}&type=0&dlr=1&destination=" . urlencode($mobile) ."&source=" . urlencode($smsSender) ."&message=" . urlencode($smsBody);
$result = file_get_contents($link);
}
//Send SMS and Email Here
$session->data['UTMEregnum'] = $reg;
$session->data['data'] = $data;
$session->save();
$ref_from = "./utme-register-ok.php";
}else{
$ref_from = "./register.php?err=signup_no";
}