Home > LAMP > PHP send text message

PHP send text message

 * send a text message via email to a phone 
 * a quick test is to open up gmail and put the phoneNumber@domainName
 * a list of domains can be found here http://www.venture-ware.com/kevin/web-development/email-to-sms/
 * put some text in the Subject and Body and hit send. 
 * If your number and domain is correct, you should get a text 
 * NOTE: Your carrier may charge you
 * example of how a text message might be routed 
 * php mail() -> http server -> cloud/internet -> SMS gateway -> Remote Tower -> Customer Phone
 * remember that the customer might get charged for non standard text messaging
 * make sure your mails are going out properly 

/* number to send a text to and the domain
 * this should be in the form phoneNumber@domainName
 * see the link for domain names at the top
 * i am using a example number here, put the correct phone number
$phonenumber = '0001112222@vmobile.ca';

mail( $phonenumber, 'Alert message from PHP', 'Testing' );
Categories: LAMP Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: