Here’s a random example from app.net .点击“获取此应用程序”按钮,看看我的意思.
这样的东西甚至可以为我工作< a href =“http://saasSMS.com?url=mycorp.com/test.HTML”>发送链接到Phone< / a> “saasSMS.com”是一种处理整个短信方面的服务.理想情况下,可以通过链接或通过表单发布处理(并且它会在成功时重定向回您的网站).
我不想要的东西:一个下拉菜单,让你选择你的 *** 作符和一些试图给你发送电子邮件@phtext.com或类似的PHP页面.那不够光滑.
解决方法 您可以使用 ViaNett HTTP API在全球范围内发送SMS消息,而无需指定运算符.只要您的后端支持调用http请求,它就可以工作.
这是一个用PHP编写的示例:
<?PHP// Register here to get a username and password:// http://www.vianett.com/en/free-demonstration-accountif (vianett_sendsms('username','password','example','+4412345678','Hello world',$error)) { echo 'Success!';} else { echo $error;}function vianett_sendsms($username,$password,$from,$to,$msg,&$response=null) { $url = 'https://smsc.vianett.no/v3/send.ashx'; $data = array( 'user' => $username,'pass' => $password,'src' => $from,'dst' => $to,'msg' => $msg ); $qs = http_build_query($data); $response = file_get_contents($url.'?'.$qs); return $response == '200|OK';}总结
以上是内存溢出为你收集整理的从Web发送短信(是否有一些提供商)?全部内容,希望文章能够帮你解决从Web发送短信(是否有一些提供商)?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)