Hi,
slight problem. I have windows xp home edition and for my project (uni) and I would like to show that my mail function does acctually work.
$row = $result->fetch_object();
$email = $row->email;
$from = "From: [email]support@imageweb.com[/email] \r\n";
$mesg = "Your Imageweb password has been changed to $password \r\n"
."Please change it next time you log in. \r\n";
if (mail($email, 'ImageWeb login information', $mesg, $from))
return true;
else
throw new Exception('Could not send email.');
however I dont have a smtp server installed. can anyone tell me what free smtp program will work with xp home edition and php and what I need to configure inside the php.ini or what I need to do with the SMTP program so it works with PHP. The mail does not acctually have to be send out into the Internet, I just want that php does not give me an error message and that the messages are stored in the smtp server.
Oh and for the php.ini file I suppose this should work?
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = [email]support@imageweb.com[/email]
This is all I need since my server is called localhost