简体   繁体   English

如何通过 PHP 发送短信

[英]How to Send SMS through PHP

  • create and import contacts and groups.创建和导入联系人和组。 send a single SMS, or send发送一条短信,或发送
  • bulk SMS to a group or multiple groups.批量短信发送到一个或多个组。 connect to any SMS gateway连接到任何短信网关
  • with minimal configuration.以最少的配置。 customize your SMS or email.自定义您的短信或电子邮件。 add a link to your SMS and email.添加指向您的短信和电子邮件的链接。

The message is composed using a web application that is stored and executed on a HTTP server and then sent through the internet ("the cloud") as an email message.该消息是使用 Web 应用程序编写的,该 Web 应用程序在 HTTP 服务器上存储和执行,然后作为电子邮件消息通过互联网(“云”)发送。 The email is received by a Short Message Service Gateway (SMS Gateway), which converts the message from an email message to a SMS message.电子邮件由短消息服务网关(SMS 网关)接收,该网关将消息从电子邮件消息转换为 SMS 消息。 The SMS message is then handed to a Short Message Service Center (SMSC), which is a server that routes data to specific mobile devices.然后将 SMS 消息传送到短消息服务中心 (SMSC),该中心是将数据路由到特定移动设备的服务器。 The message is finally transmitted over the wireless network to the recipient.消息最终通过无线网络传输到接收者。 Most wireless networks have a SMS gateway through which email messages can be sent as text messages to a mobile device.大多数无线网络都有一个 SMS 网关,通过它可以将电子邮件消息作为文本消息发送到移动设备。 This is nice, because, from a developer's standpoint, it is generally free—however, it is of course not a free service for the end user.这很好,因为从开发人员的角度来看,它通常是免费的——但是,对于最终用户来说,它当然不是免费服务。 Fees still apply to the recipient of the message and messages sent via email will be billed as a non-network text message消息接收者仍需付费,通过电子邮件发送的消息将作为非网络短信计费

我们可以使用 php mail() 函数发送短信,但您必须从网络提供商购买 SMPP

你可以使用way2sms gateway之类的网关来通过php发送短信

轻松使用短信,我们使用https://developers.messagebird.com/docs/sms-messaging进行电话验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM