`
天梯梦
  • 浏览: 13742369 次
  • 性别: Icon_minigender_2
  • 来自: 洛杉矶
社区版块
存档分类
最新评论

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

 
阅读更多

测试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 Create a Database in Python using SQL Lite 3 epub

    How to Create a Database in Python using SQL Lite 3 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    手机免费发短信代码

    标题“手机免费发短信代码”涉及的核心知识点是利用编程代码实现通过互联网向手机发送免费短信的服务。这种服务通常基于云计算技术,将短信功能转移到网络上,以减少或消除传统短信服务的费用。以下是对这个主题的...

    全球短信免费发1.0(只能发英文)

    全球短信免费发 V1.0 ----------------------------------------- 软件简介:  此程序利用国外免费短信网站的接口制作。优点是无需注册,无需通过对方手机验证即可给全球任意一部手机发送短信。E文好的可以发E文...

    Send SMS example 2009_labview_发短信_may61p_电脑发短信_发邮件_

    本文将深入探讨如何利用LabVIEW编写程序,实现电脑向手机发送短信以及发送电子邮件的功能,以此为例,我们将详细解析"Send SMS example 2009_labview_发短信_may61p_电脑发短信_发邮件_"项目中的核心知识点。...

    How to Create a Database in Python using SQL Lite 3 mobi

    How to Create a Database in Python using SQL Lite 3 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    How to Create a Database in Python using SQL Lite 3 azw3

    How to Create a Database in Python using SQL Lite 3 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    How to Create a Database in Python using SQL Lite 3 无水印转化版pdf

    How to Create a Database in Python using SQL Lite 3 英文无水印转化版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或...

    Qualitative Text Analysis A Guide to Methods, Practice and Using Software epub

    Qualitative Text Analysis A Guide to Methods, Practice and Using Software 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    send_text_message.zip_cell phones matlab _matlab message_matlab

    总的来说,这个MATLAB脚本"send_text_message.m"提供了一个通过第三方短信服务向美国手机发送短信的解决方案。理解其中涉及的技术细节,包括MATLAB的Web服务交互、API调用、错误处理和手机号码格式,对于开发类似的...

    How to Think About Algorithms epub

    How to Think About Algorithms 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    free-sms:使用 PHP 发送免费短信

    使用 PHP 发送免费短信 只是我很久以前制作的一个非常古老的脚本。 甚至不记得我为什么做到了 :D 希望你喜欢它,并可以利用它。 支持的运营商 奥特尔 促进 奇异的 耐特尔 美国 T-Mobile Verizon无线 美国维珍移动...

    C how to program

    《C how to program》是由Paul Deitel和Harvey Deitel编写的C语言入门教材课本,第八版附带有C++的介绍。这本书作为编程教育的标准参考资料之一,详细介绍了C语言的基础知识和编程技巧,适合初学者和那些希望加深对...

    Lisp Good News Bad News How to Win Big

    标题:Lisp: Good News, Bad News, How to Win Big 描述:本文深入探讨了Lisp编程语言在近十年中的发展轨迹,分析了其成功与挑战,并提出了未来发展的策略。 ### 重要知识点详解: #### 1. Lisp的发展历程与标准...

    C++ How to Program(10th) epub

    C++ How to Program(10th) 英文epub 第10版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    Personal Cybersecurity How to Avoid and Recover from Cybercrime 无水印原版pdf

    Personal Cybersecurity How to Avoid and Recover from Cybercrime 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请...

Global site tag (gtag.js) - Google Analytics