Click to See Complete Forum and Search --> : need help with mail


chronicle
07-01-2002, 07:39 AM
Hi

I canīt make my mail function work. I ran this text, saved as mail.php:
<?php
echo "<body>";
mail ("christian_hewitt@hotmail.com", "Subject", "Hello!");
echo "Sending mail...";
echo "</body>";
?>

and I got this error:
Warning: Failed to Receive in c:\inetpub\wwwroot\mail.php on line 5
Sending mail...

any ideas what is wrong, Iīm running win XP pro
thanks
CS

balsdorf
07-01-2002, 03:42 PM
What is the SMTP server for your php.ini file?
If you can't get that working, try the PEAR mail classes or PHPMailer (http://phpmailer.sourceforge.net/). PHPMailer lets you connect to an external SMTP server and do all kinds of fun things...

chronicle
07-02-2002, 06:41 AM
How can I change that?