guys..i am running my website on the local host(my own PC)……
and i am trying to send mail to my yahoo acc..
i have try the below code ..but it is not working…..
<?php
$to = “
$subject = “Hi!”;
$body = “Hi,nnHow are you?”;
$head = “From:
$mailsent = mail($to, $subject, $body, $head);
if ($mailsent) {
echo “<p>Message successfully sent!</p>”;
} else {
echo “<p>Message delivery failed…</p>”;
}
?>
this is my php.ini configuration…
[mail function]
; For Win32 only.
SMTP = pop3hot.com
smtp_port = 25
; For Win32 only.
sendmail_from = [email][email protected]
does anyone know what is wrong with my code or my configuration??pls tell me..cause i have tried to search for many source but still cant to get the code to run………!!!!!!!!
thanks alot!!!!!!!!!!!!!!!