我們目前使用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 –