問題描述
我很想知道通過 PHP 發(fā)送短信是否可行.其主要目的是向一群人發(fā)送一條消息 - 10+ - 包含有關(guān)新聞等的更新.最好的解決方案應(yīng)該是免費(fèi)的,盡管它在任何方面都不是必需的.提前致謝.
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.
推薦答案
我已經(jīng)用 PHP 做到了這一點(diǎn),而且效果很好.短信只不過是一封電子郵件,通常帶有收件人的 10 位數(shù)字@address.com.如果您想向使用 PHP 的人發(fā)送短信,則需要獲取正確的地址:
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:
這是部分列表
您需要注意消息的長度,因?yàn)榇蠹s 55 個(gè)字符(我相信)您的消息可能會(huì)被分成多個(gè)文本,或者丟失.
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.
通過電子郵件發(fā)送文本是免費(fèi)的.
Sending texts via email is free.
這篇關(guān)于通過 PHP 發(fā)送短信/短信的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!