时间:2021-07-01 10:21:17 帮助过:38人阅读
/*
所需PHP扩展:curl, simplexml
*/
include "libs/fetion.class.php";
#设置飞信帐号密码
$username="15900000000";
$password="password";
//接收号码,多号码用","分隔(159..,159..)
$sendto ="15900000000,13400000000";
//消息内容
$message = "I am from heqee.com";
//实例化(必须)
$fetion = new fetion($username,$password);
//发送 返回布尔
$sms = $fetion->send($sendto,$message);
if($sms){
echo "ok";
}
?>
开源代码下载http://www.gxlcms.com/codes/28628.htmlhttp://www.bkjia.com/PHPjc/322220.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/322220.htmlTechArticle1,支持群发 (如果需要群发多号用英文逗号(,)分隔(159..,159..)) 2,支持POST或GET方式提交数据 本站接口: http://api.heqee.com/fetion/?username=飞信手机...