Ok well heres the code
PHP Code:
<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>
</select>
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" />
</form>
</body></html>
<?php
$number =$_POST['number'];
$provider =$_POST['provider'];
if ($provider == "Tmobile") {
$provider = "tmomail.net";
}
if ($provider == "Bell Canada") {
$provider = "txt.bell.ca";
}
if ($provider == "AT&T/Cingular") {
$provider = "txt.att.net";
}
if ($provider == "Boost Mobile") {
$provider = "myboostmobile.com";
}
if ($provider == "Nextel") {
$provider = "messaging.nextel.com";
}
if ($provider == "Sprint") {
$provider = "messaging.sprintpcs.com";
}
if ($provider == "Verizon") {
$provider = "vmobl.com";
}
$to = "$number@$provider";
$subject =$_POST['subject'];
$message =$_POST['message'];
$from = "antman6373@hotmail.com";
/* To send HTML mail, you can set the Content-type header. */
$headers1 = "MIME-Version: 1.0\r\n";
$headers1 .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers1 .= "To: ".$to."\r\n";
$headers1 .= "From: ".$from."\r\n";
$headers1 .= "Reply-To: ".$from."\r\n";
?>
<?php
mail($to, $subject, $message, $headers);
?>
<? echo("$number"); ?>
<br />
<? echo("$subject"); ?>
<br />
<textarea rows="5" cols="20" wrap="physical">
<? echo("$message"); ?>
</textarea>
why wont it send?