`
天梯梦
  • 浏览: 13625040 次
  • 性别: 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删除 查看此书详细信息请在美国亚马逊官网搜索此书

    手机免费发短信代码

    全球发送免费短信基于云计算技术, Degrees Ms是美国最大的免费短信服务,允许短信发送通过免费网站上的任何手机运营商。

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

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

    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删除 查看此书详细信息请在美国亚马逊官网搜索此书

    How to Think About Algorithms epub

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

    selinux howto 中文版

    selinux howto 中文版 这份文档是美国国家安全局的安全加强的 Linux(NSA SE Linux)的概述性的说明。我们主 要的环境是基于 Debian Linux 的, 而且大部分的软件包的操作命令实例都是基于 Debian 的。 这份文档...

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

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

    统计陷阱 How to Lie With Statistics 中文版 清晰 PDF

    《统计陷阱》本书是美国著名的统计学家达菜尔·哈夫的名著。该书自1954年出版至今,多次重印并被译成多国文字,是一本影响深远的经典性著作。《统计陷阱》一书之所以能够历久弥新,是因为其实用性。随着我国经济持续...

    How to Think About Algorithms 无水印原版pdf

    How to Think About Algorithms 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细...

    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测试都可以打开 本资源转载自网络,如有侵权,请...

    Data Analysis Plans A Blueprint for Success Using SAS How to Plan Your 无水印原版pdf

    Data Analysis Plans A Blueprint for Success Using SAS How to Plan Your First Analytics Project 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本...

    How to Lie with Statistics

     《统计陷阱》是美国统计学家达莱尔·哈夫的名著,自1954年出版至今,多次重印,被译为多种文字,影响深远。  在日常的经济生活中,我们将接触到越来越多的统计数据和资料,例如各种证券信息、投资可行性研究报告...

    免费短信发发发V3.0

    “免费短信发发发V3.0”是通过美国最大的免费短信网站接口来发送短信一款绿色小软件。可以给中国和全世界的手机用户免费发送短信,经本人测试,发送成功率接近100%,总共体积只有不到900KB大小,最大的特点是免费。

    Rapid Game Development Using Cocos2d-JS An end-to-end guide to 2D game 无水印原版pdf

    Rapid Game Development Using Cocos2d-JS An end-to-end guide to 2D game development using JavaScript 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开...

Global site tag (gtag.js) - Google Analytics