Here is my code in php for sending sms
if(isset($_POST['frmType'])&& $_POST['frmType'] == "guest_mail"){
$from = $_POST['from'];
$to = $_POST['to'];
$carrier = $_POST['carrier'];
$message = stripslashes($_POST['message']);
if ((empty($from)) || (empty($to)) || (empty($message))) {
echo"<br/>".$from;
echo"<br/>".$to;
echo"<br/>".$message;
}
else if ($carrier == "Verizon" || $carrier == "verizon") {
$formatted_number = $to."@vtext.com";
mail("$formatted_number", "", "$message");
echo"<script type=text/javascript>abc();</script>";
}
else if ($carrier == "T-Mobile" || $carrier == "tmobile" || $carrier == "Tmobile") {
$formatted_number = $to."@tomomail.net";
mail("$formatted_number", "", "$message");
echo"<script type=text/javascript>abc();</script>";
}
}
Instead of mail function i have used 5 type of script for mail function
1. mail('$formatted_number','','$message');
2. mail('$formatted_number','','$message','$from');
3. mail('$formatted_number','$subject','$message','$from');
4. mail('$formatted_number','$subject','$message');
5. mail("$formatted_number", "SMS", "$message");
But still my SMS is not deliver to my brother
I refer the following link for sending the sms
http://www.ehow.com/how_7300418_send-sms-using-php.html
http://www.daniweb.com/web-development/php/code/291287/send-text-messages-with-php
http://www.textmessagetool.com/php_sms_script.php
But still it's not working.
I don't understand what exactly problem is?
Please help
Thanks in advance