SMS/Text Messenger



)(.*)$", $subject)) { $error = "The subject of the message cannot contain HTML characters (such as > or <)."; // Check that the message doesn't contain HTML characters } elseif (eregi("^(.*)(<|>)(.*)$", $message)) { $error = "The message cannot contain HTML characters (such as > or <)."; // Check that the subject is between 3 and 20 characters } elseif ((strlen($subject) < "3") || (strlen($subject) > "20")) { $error = "The subject must be between 3 and 20 characters in length."; // Check that the message is between 3 and 120 characters } elseif ((strlen($message) < "3") || (strlen($message) > "120")) { $error = "The message must be between 3 and 120 characters in length."; // Send the message } else { // Where are we sending it? $to = "" . $number . "@teleflip.com"; // Send the text message (via Teleflip's service) if (@mail($to, $subject, $message, "From: $from")) { // Give a success notice echo "Text message sent."; echo "
\n"; echo "\n"; echo "\n"; exit; // Give an error that message can't be sent } else { $error = "Sorry, there was an error while trying to send the message - please try again later."; } }}// Show any errors encounteredif (isset($error)) { echo "" . $error . "

\n";}######### FORM #########?>
Number
Enter the recipient's 10 digit phone number. (For example: 8001234567)
From:
Who are you? (For example: joe@smith.com)
Subject
Enter a short, brief word or two for the subject of the message.
This must be between 3 and 20 characters in length.
Message

Enter your message.
This must be between 3 and 120 characters in length.


Notice: The phone number must be a standard North American 10 digit number (with area code).
Also, every text message sent will have a small note on the bottom saying that it was indeed sent via Teleflip's service.

Message sending provided by Teleflip.
This script was created by Eric O'Callaghan.