SMS/Text message sending via PHP(通过 PHP 发送短信/短信)
问题描述
我很想知道通过 PHP 发送短信是否可行.其主要目的是向一群人发送一条消息 - 10+ - 包含有关新闻等的更新.最好的解决方案应该是免费的,尽管它在任何方面都不是必需的.提前致谢.
I'm interested in knowing if it would be at all feasible to be able to send text messages via PHP. The main purpose of which would be to send a single message to a group of people - 10+ - with updates regarding news and such. Preferably the solution should be free, though it is not a necessity in any way. Thanks to all in advance.
推荐答案
我已经用 PHP 做到了这一点,而且效果很好.短信只不过是一封电子邮件,通常带有收件人的 10 位数字@address.com.如果您想向使用 PHP 的人发送短信,则需要获取正确的地址:
I've done this with PHP, and it works very well. Text messages are nothing more than an email, usually with the receiver's 10 digit number @address.com. If you want to send text messages to someone with PHP, you'll need to get the proper address:
这是部分列表
您需要注意消息的长度,因为大约 55 个字符(我相信)您的消息可能会被分成多个文本,或者丢失.
You'll want to be careful with how long your messages get, since at about 55 characters (I believe) your message can be either split into multiple texts, or lost.
通过电子邮件发送文本是免费的.
Sending texts via email is free.
这篇关于通过 PHP 发送短信/短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:通过 PHP 发送短信/短信


基础教程推荐
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- PHP 守护进程/worker 环境 2022-01-01
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- HTTP 与 FTP 上传 2021-01-01
- 使用 PDO 转义列名 2021-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01