I did change smtp and add header, but still error comes out.
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = whatever@yahoo.ca
<?php
$to = $_POST['S_EMAIL'];
$from = "whatever@yahoo.com";
$title = "your password";
#setting a header
$header = "From: me <whatever@yahoo.com>\r\n";
$body = " This email reminds you the password . Please direct all requests to whatever@yahoo.com. Thank you.";
#now sending
mail($to,$title,$body,$header);
?>
error:
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\web\adm_email.php on line 9
Email has been sent!



