[PHP][Showoff]Text Sender
Ok so i was kinda bored so i made a text sender :D
http://radiodev.org/ringtone
It sends texts to phones :D
PHP Code:
<?php
$number = $_POST['number'];
$email_to = "$number@$provider";
if ($_POST['provider'] == "Tmobile") {
$provider = "tmomail.net";
}
if ($_POST['provider'] == "Telstra") {
$provider = "mobilenet.telstra.net";
}
if ($_POST['provider'] == "Bell Canada") {
$provider = "txt.bell.ca";
}
if ($_POST['provider'] == "AT&T/Cingular") {
$provider = "txt.att.net";
}
if ($_POST['provider'] == "Boost Mobile") {
$provider = "myboostmobile.com";
}
if ($_POST['provider'] == "Nextel") {
$provider = "messaging.nextel.com";
}
if ($_POST['provider'] == "Sprint") {
$provider = "messaging.sprintpcs.com";
}
if ($_POST['provider'] == "Verizon") {
$provider = "vmobl.com";
}
$email_to = "$number@$provider";
$email_subject = $_POST['subject'];
$email_body = $_POST['message'];
if(isset($_POST['submit']))
{
if(mail($email_to, $email_subject, $email_body)){
echo "the email $email_subject was sent";
} else {
echo "The email $email_subject was NOT sent.";
}
} else {
?>
<html><body>
<form method="post">
<select name="provider">
<option>Tmobile</option>
<option>Bell Canada</option>
<option>AT&T/Cingular</option>
<option>Boost Mobile</option>
<option>Nextel</option>
<option>Sprint</option>
<option>Verizon</option>
<option>Telstra</option>
</select>
<br />
Phone Number: <input name="number" type="text" />
<br />
Subject: <input name="subject" type="text" />
<br />
<textarea rows="5" cols="20" wrap="physical" name="message">
Message Here
</textarea>
<br />
<input type="submit" name="submit" />
</form>
</body></html>
<?php
}
?>
Dont rip please :D
Re: [PHP][Showoff]Text Sender
Hmm, I'm scared to try it, as it may just log my phone number. :/:
Send me the code? :love:
Re: [PHP][Showoff]Text Sender
Quote:
Originally Posted by
Rasta
Hmm, I'm scared to try it, as it may just log my phone number. :/:
Send me the code? :love:
as requested dont rip :D
Re: [PHP][Showoff]Text Sender
Quote:
Originally Posted by
HotelUnderSeige
as requested dont rip :D
Very nice, you always make some great scripts. :P:
Re: [PHP][Showoff]Text Sender
Re: [PHP][Showoff]Text Sender
Re: [PHP][Showoff]Text Sender
leech off another script. Don't lie I have seen this on a other site
Re: [PHP][Showoff]Text Sender
Quote:
Originally Posted by
arberb
leech off another script. Don't lie I have seen this on a other site
no i have wrotten this script many times before and not gotten it to work, but now i did so stfu? heres the link
http://forum.ragezone.com/f144/php-m...nd-php-476998/
so next time you try and bull shit someone look up on resources, now dont let the door hit you on the ass
Re: [PHP][Showoff]Text Sender
Greatjob, although i'm with Optus AU. So it's pretty useless for me.
I've always wondered how these work, do they send the headers and other information through the Telsta Satelite or what:ehh:?
Re: [PHP][Showoff]Text Sender
I was under the impression you needed a telecom server of some sort to do this(?).
But if this does the job then awesome I learned something... *goes to try it*
My thanks if it works lol
--Edit--
it looks as though your provider must support the email/sms system for this email script to work.
Yes only major carriers provide this perk. Oh well still handy to know thanks.
Re: [PHP][Showoff]Text Sender
My internet protector doesnt allow me to enter the page thought :I
i feel unsure.
Re: [PHP][Showoff]Text Sender
Re: [PHP][Showoff]Text Sender
It sends a mail to number@provider. It's incredibly easy, and not "pro" at all. But it's fun I guess.
It's a common trick, just like "Format C:\" in .bat files.
Re: [PHP][Showoff]Text Sender
Quote:
Dont rip please :D
Why post the source then?
Re: [PHP][Showoff]Text Sender
Pretty out bounding thought. Good job.
Re: [PHP][Showoff]Text Sender
Quote:
Originally Posted by
Monsta.
Why post the source then?
because of this
Quote:
Originally Posted by
Rasta
Hmm, I'm scared to try it, as it may just log my phone number. :/:
Send me the code? :love:
he put the source up so he wouldn't have to individually send a pm im guessing.
Re: [PHP][Showoff]Text Sender
Awesome script =]
Simple and effective.
Re: [PHP][Showoff]Text Sender
Thanks everyone would anyone like there provider added?
Re: [PHP][Showoff]Text Sender
If you made all the providers except the first inside else if()'s then it would be a little better because it would stop looking through the if statements for the other providers after it found one..
You could also do a switch case method to be more efficient ;)
Re: [PHP][Showoff]Text Sender
Quote:
Originally Posted by
s-p-n
If you made all the providers except the first inside else if()'s then it would be a little better because it would stop looking through the if statements for the other providers after it found one..
You could also do a switch case method to be more efficient ;)
i was thinking about the doing an else if but i decided not to for reasons unkown.