php 如何使用php在短信中发送验证码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17608395/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to send verification code in sms using php
提问by Karthiga
I have website and I want to verify user mobile number. How can I do that? Is there any site for sending message to the user mobile number. Please let me know.
我有网站,我想验证用户手机号码。我怎样才能做到这一点?是否有任何网站可以向用户手机号码发送消息。请告诉我。
回答by Rohan Kumar
Yes, there are many sites providing bulk sms
you can use google
, below is the list of some websites which are in my knowledge,
是的,有很多网站bulk sms
可供您使用google
,以下是我所知的一些网站列表,
回答by Code L?ver
You need to purchase the API code from the mobile operators.
您需要从移动运营商处购买 API 代码。
Or you can do that by paying for a service for true SMS.
或者您可以通过为真正的短信服务付费来做到这一点。
use emails where available like 98955*****@tmomail.net
使用可用的电子邮件,例如 98955*****@tmomail.net
http://www.tech-recipes.com/rx/939/sms_email_cingular_nextel_sprint_tmobile_verizon_virgin/
http://www.tech-recipes.com/rx/939/sms_email_cingular_nextel_sprint_tmobile_verizon_virgin/
or use curl to sms from each providers web site where available.
或使用 curl 从每个可用的提供商网站发送短信。
Here are few more link to get the code for sending the mobile SMS:
以下是获取发送手机短信代码的更多链接:
http://sourceforge.net/projects/send-sms-script/
http://sourceforge.net/projects/send-sms-script/
http://www.nowsms.com/doc/submitting-sms-messages/send-sms-text-message-with-php
http://www.nowsms.com/doc/submitting-sms-messages/send-sms-text-message-with-php
回答by San
You need use SMS APIs(gateways), check these services http://www.clickatell.com/
您需要使用 SMS API(网关),请检查这些服务 http://www.clickatell.com/