Short message service (SMS) messages, also known as text messages, have become the preferred way of communication for many people. They offer email’s benefit of mass messaging, but also have the additional benefit of being received nearly instantly. What many people don’t know is that SMS messages can actually be sent through HTTP in the same way that an email is, meaning that PHP Web applications can be made that send SMS messages to users for free. $recipient = $_GET[‘pnumber’]; ?> $recipient = $_GET[‘pnumber’]; switch($_GET[‘carrier’]){ case “verizon”: $recipient .= “@vtext.com”; break; case “att”: $recipient .= “@txt.att.net”; break; case “tmobile”: $recipient .= “@tmomail.net”; break; } ?> $recipient = $_GET[‘pnumber’]; switch($_GET[‘carrier’]){ case “verizon”: $recipient .= “@vtext.com”; break; case “att”: $recipient .= “@txt.att.net”; break; case “tmobile”: $recipient .= “@tmomail.net”; break; } $body = “This SMS message was sent with PHP.”; ?> $recipient = $_GET[‘pnumber’]; switch($_GET[‘carrier’]){ case “verizon”: $recipient .= “@vtext.com”; break; case “att”: $recipient .= “@txt.att.net”; break; case “tmobile”: $recipient .= “@tmomail.net”; break; } $body = “This SMS message was sent with PHP.”; $header = “From: sms@yourdomain.com”; ?> $recipient = $_GET[‘pnumber’]; switch($_GET[‘carrier’]){ case “verizon”: $recipient .= “@vtext.com”; break; case “att”: $recipient .= “@txt.att.net”; break; case “tmobile”: $recipient .= “@tmomail.net”; break; } $body = “This SMS message was sent with PHP.”; $header = “From: sms@yourdomain.com”; mail($recipient,"",$body,$header); ?> Tips Warnings Writer Bio
