note 27977 rejected from ref.mail by spic
| From: | spic@php.net | Date: | Sat, 28 Dec 2002 11:26:09 +0000 |
| Subject: | note 27977 rejected from ref.mail by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-41374@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 !!!