note 27977 added to ref.mail
| From: | seefai at time dot net dot my | Date: | Sat, 28 Dec 2002 03:17:15 +0000 |
| Subject: | note 27977 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41372@lists.php.net to get a copy of this message | ||
I am a Malaysian, I wish to know how can i sent sms by using mail function, i tryout already its
doesn't work.But i using other email services like HOtmail, Yahoo , it works,below are my code
:
$to = "0122239458@sms.maxis.net.my";
//My handphone service SMS address
$from = "FROM: seefai@time.net.my\r\n"
."Reply-To: seefai@time.net.my\r\n"
."MIME-Version: 1.0\n"
."X-Mailer: PHP 4\n"
."X-Priority: 1\n"
."Content-Type: text/html; charset=iso-8859-1\n";
$subject = "Just to say Hi! ";
$message = "LionKing 11.00am ";
if(mail($to,$subject,$message,$from)){
echo " SMS Sent Sucessfully . ";
}else{
echo "<font color=red>SMS Sent fail.</font>";
}
?>
Can someone help me out of this problem ? Thanks !!!
--
http://www.php.net/manual/en/ref.mail.php
http://master.php.net/manage/user-notes.php?action=edit+27977
http://master.php.net/manage/user-notes.php?action=delete+27977
http://master.php.net/manage/user-notes.php?action=reject+27977