测试DEMO

I am currently working on a large project and part of the project is to send simple text message notices using PHP.  Our client had looked into a number of expensive services to send simple SMS messages but most were cost prohibitive for a start-up venture.

As usual, I was not satisfied paying for something that I should be able to do on my own. So I started thinking about how the messaging systems worked and realized that we could just use the carriers built in email addresses for MMS messaging.  This is a great, cost effective method for sending text messages but it does require that you know the user’s carrier for the message to be successfully delivered.  In our case, we are able to ask for that in the web form which we are using to collect the user’s phone number but it may not work for every application.

Basically the solution is to send an email using the built in mail function in PHP or any common method of sending email.  The email address you would send to would be the 10 digit mobile number followed by the carriers specific email address. (A list is included below)

Email addresses for the primary U.S. based cell phone carriers:
Alltel = xxxxxxxxxx@message.alltel.com
AT&T = xxxxxxxxxx@mms.att.net or xxxxxxxxxx@txt.att.net
Boost Mobile = xxxxxxxxxx@myboostmobile.com
Centennial Wireless = xxxxxxxxxx@myblue.com
Einstein PCS = xxxxxxxxxx@einsteinmms.com
Nextel = xxxxxxxxxx@messaging.nextel.com
Sprint = xxxxxxxxxx@messaging.sprintpcs.com or xxxxxxxxxx@pm.sprint.com
T-Mobile = xxxxxxxxxx@tmomail.net
US Cellular = xxxxxxxxxx@mms.uscc.net
Verizon Wireless = xxxxxxxxxx@vtext.com
Virgin Mobile = xxxxxxxxxx@vmobl.com

The simple PHP code to send the email:

//SUBJECT AND BODY OF EMAIL SHOULD BE LESS THAN 160 CHARACTERS TOTAL
$subject = "Text Message Subject";
$message = "Text Message Content"; //SENDS TEXT MESSAGE TO 503-869-4212
mail("5038694212@txt.att.net",$subject,$message,"From: email@site.net");

原文:http://www.stemkoski.com/sending-text-messages-using-php-for-free/

更多carrier:

http://www.sensiblesoftware.com/weblog/2011/02/28/cell-phone-email-addresses/

http://networking.ringofsaturn.com/Telecommunications/mobile-phone-emails.php

测试DEMO

免费发短信(仅限美国国内)How to Send Free Text Messages Using PHP相关推荐

  1. 7款免费发短信软件,看看哪一款适合你

    说到发短信,大部分人的第一反应都是手机自带的短信功能,但是很多人不知道的是,手机发短信对短信数量是严格控制的,具体数量限制为: 非节假日每小时不得超过200条,每天总量不超过1000条; 节假日期间, ...

  2. 中国移动飞信免费发短信API接口(第三方)

    飞信是由中国移动通信集团公司推出的一款集商务应用和娱乐功能为一体的,基于手机应用以及与Internet深度互通的即时通讯产品,可免费给好友发送短信. 1.下载中国移动飞信PC客户端软件(http:// ...

  3. 中国移动飞信免费发短信API接口(第三方 Fetion API)

    [文章作者:张宴 本文版本:v1.1 最后修改:2010.08.03 转载请注明原文链接: http://blog.s135.com/fetion_api/ ] 备注:2010年7月底移动飞信修改协议 ...

  4. 中国移动飞信免费发短信API接口

    飞信是由中国移动通信集团公司推出的一款集商务应用和娱乐功能为一体的,基于手机应用以及与Internet深度互通的即时通讯产品,可免费给好友发送短信. 1.下载中国移动飞信PC客户端软件(http:// ...

  5. 中国移动飞信免费发短信API接口(第三方) 1

    Code [文章作者:张宴 本文版本:v1.0 最后修改:2009.03.22 转载请注明原文链接:http://blog.s135.com/fetion_api/] 飞信是由中国移动通信集团公司推出 ...

  6. 中国移动飞信免费发短信API接口(第三方 Fetion API

    飞信 是由中国移动通信集团公司推出的一款集商务应用和娱乐功能为一体的,基于手机应用以及与Internet深度互通的即时通讯产品,可免费给好友发送短信. 1.下载中国移动飞信PC客户端软件(http:/ ...

  7. 用Python每天自动给女朋友免费发短信,谁说程序员不懂浪漫?

    前言 之前发过一篇文章,用 Python 制作的给父母天气预报提醒的小工具天气变冷了,给父母制作一个天气提醒小助手,这篇文章我同步到博客上之后,有读者在评论区留言,对于部分微信没有网页版接口,导致无法 ...

  8. python软件是免费的吗-谁说程序员不懂浪漫?用Python每天自动给女朋友免费发短信...

    前言 之前发过一篇文章,用 Python 制作的给父母天气预报提醒的小工具天气变冷了,给父母制作一个天气提醒小助手,这篇文章我同步到博客上之后,有读者在评论区留言,对于部分微信没有网页版接口,导致无法 ...

  9. PHP实现飞信接口来通过网页免费发短信

    首先感谢郝同学告诉我这么一个神奇的接口 可以输入你的手机号.密码.对方手机号.发送内容直接给对方发短信. 源作者博客地址为:http://blog.quanhz.com/ 郝同学的博客地址:http: ...

最新文章

  1. 自学python可以找到好的工作吗-通过自学python能找到工作吗
  2. [翻译]C#数据结构与算法 – 第六章BitArray类
  3. linux PHP ppt 转图片,linux下用php将doc、ppt转图片
  4. 【代码笔记】iOS-TableViewOfTwoSecton
  5. js获取节点的DOM操作
  6. android jdbc 连接mysql数据库,android怎么用JDBC方法连接mysql数据库
  7. JavaScript状态2018
  8. 页面加载被延迟 Firefox将禁用对DV和OV证书的OCSP检查
  9. 2021-10-07
  10. 蓝桥杯 ALGO-1 算法训练 区间k大数查询
  11. java day63【 SSM 整合 】
  12. 神策分析1.7重磅上线 三大功能直指精益数据分析
  13. ae教程 (四)运动控制 (三)
  14. python 占用内存过高_PyCharm如何优化?太占内存了,太慢了
  15. 仿9GAG制作过程(四)
  16. OpenShift 4 - 用 External Secret 集成 Hashicorp Vault
  17. oracle dbs文件夹,Oracle10g 目录$ORACLE_HOME/dbs 下有文件 hc_.dat ,用处是 ?
  18. Android 安卓实现Neumorphism(新拟物化)UI控件
  19. SOP(标准操作流程)
  20. 道道通导航linux升级,道道通导航升级2020冬季版

热门文章

  1. 二分法求函数的零点(信息学奥赛一本通-T1241)
  2. 单词排序(信息学奥赛一本通-T1185)
  3. 打印ASCII码(信息学奥赛一本通-T1020)
  4. 61 MM配置-后勤发票校验-发票冻结-设置容差限制
  5. python内置函数可以用来_Python内置函数——compile
  6. [有限元] 面积坐标的幂函数在三角形单元,三角形环单元上的积分公式和体积坐标的幂函数在常应变四面体单元上的积分公式
  7. Matlab(R2020a)添加工具箱Toolbox的方法(详细图解)
  8. java编写在输入特定日期之间_java实现输入日期
  9. 运算均值方差_Python数据分析之NumPy(运算篇)
  10. elementUI表格组件:自定义列模板(完整案例)