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

WBOY
发布: 2016-06-13 12:02:50
原创
1946 人浏览过

免费发短信(仅限美国国内)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 = [email protected]
AT&T = [email protected] or [email protected]
Boost Mobile = [email protected]
Centennial Wireless = [email protected]
Einstein PCS = [email protected]
Nextel = [email protected]
Sprint = [email protected] or [email protected]
T-Mobile = [email protected]
US Cellular = [email protected]
Verizon Wireless = [email protected]
Virgin Mobile = [email protected]

?

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-4212mail("[email protected]",$subject,$message,"From: [email protected]");
登录后复制

?

?

原文: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

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板