Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me with PHP email function please!!!

Status
Not open for further replies.

LovelyAngel

Programmer
Mar 17, 2002
17
0
0
GB
Hi all of you,

My PHP email function is not working in my machine. The sever setting in my machine is IIS5.0, Windows2K, PHP server. and my code is viewed as below:

<?php

echo &quot;<html><body>&quot;;

$recipient = &quot;footballyeah@hotmail.com&quot;;
$subject = &quot;Testing the mail function&quot;;
$message = &quot;Hello!\n\nThis is the body of the message.\n\n&quot;;

mail ($recipient, $subject, $message);

echo &quot;Sending mail...&quot;;
echo &quot;</body></html>&quot;;

?>

but my browser reflected this message to me:

Warning: Server Error in C:\Inetpub\ on line 10.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top