I have mail account on Hotpop . I want to use it to send emails using mail(), already, during php installation I entered the smtp of hotpop and my email on it, but where and How can I entered the password and the user name, Is it in php.ini? or inside my script?
The following code, generates an error, " Warning: Server Error in \multi\mail.php on line 4 ",
<?php
//message format is assigned to variable
$mes = "<html><head><title>Test No 1</title></head><body><center><h1><font color=red>Welcome in the test no 1</body></html>";
//The following line which causes the warrning message
if(mail("said_fox@softhome.net","Hello php test no 1","$mes"))
{
echo("message sent");
}
else
{
echo("It is not sent");
}
?>
Note: My OS is Win ME, PHP Ver 4.2, installed with windows installer, running on Apache server
regards