dethlon
07-20-2006, 09:46 PM
guys..i need to create an password retrival function in which server have to send password requested by the client...
i realize that PHP is using the mail() function to do this....but i try the function n it is not seem to be working...
this is my testing code
<?
$email = "susanto_wang@yahoo.com";
$subject = "Password Retrieval";
$message = "aaaaaaaa";
$headers = "From: Admininstrator(susanto_wang@stellarnet.com)";
mail($email, $subject, $message, $headers);
echo "testing";
$mailsent = mail($email, $subject, $message, $headers);
if ($mailsent){
echo "success";
}
?>
i am using the hotmail pop3hot .....
i think i need to configure something in the php.ini and the smtp connection....but how actually i am going to do that..??i really have no idea how to configure these stuff to make the email thing working..pls help ~~
thanks alot....( any working example, pls post to me thanks...)
i realize that PHP is using the mail() function to do this....but i try the function n it is not seem to be working...
this is my testing code
<?
$email = "susanto_wang@yahoo.com";
$subject = "Password Retrieval";
$message = "aaaaaaaa";
$headers = "From: Admininstrator(susanto_wang@stellarnet.com)";
mail($email, $subject, $message, $headers);
echo "testing";
$mailsent = mail($email, $subject, $message, $headers);
if ($mailsent){
echo "success";
}
?>
i am using the hotmail pop3hot .....
i think i need to configure something in the php.ini and the smtp connection....but how actually i am going to do that..??i really have no idea how to configure these stuff to make the email thing working..pls help ~~
thanks alot....( any working example, pls post to me thanks...)