我们目前使用Clickatell来完成您所需要的功能。 http://www.clickatell.com
一旦你注册并购买一些短信学分,像这样的工作..
$postString = 'api_id=123456&user=USER&password=PASS&text=YOUR SMS MSG&to=4471234567890';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.clickatell.com/http/sendmsg');
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
希望帮助!
你不是说你需要这个的国家 –
电子邮件网关是臭名昭着的不可靠:http://stackoverflow.com/questions/3524742/sms-gateway-for-windows-c/3525070#3525070 –