#52 mail( ) will not work

open
nobody
None
5
2004-05-12
2004-05-12
Anonymous
No

The mail( ) function does not work. The mail function
give an error
Warning: Failed to Receive in
c:\apache\htdocs\contactus1.php on line 19

mail($email, $subject, $message, "From: $email"); is the
line that errors. All the variables are set. It works fine
on my friend's server, but if i try and run it locally on my
Linux 9.0 or phptriad on Windows XP, it does not.

Discussion

  • Logged In: NO

    in linux you can directly send mail using your server, in windows you need to pass it to an smtp server before you can sent mail, if you have an smtp server just edit your httpd.conf look for smtp and put the server name/address then you're good to go