Hi jason,
 Thankyou for the prompt reply.:-)
 here is the code.....
 Actually line number 18 and 22 are having mail functions..that why I
didn't send source code.....
Here is the source code..
==================================
<?php
//BE SURE TO CHANGE THE 3 LINES BELOW TO USE YOUR OWN
//ADDRESS, NAME and DATA FILENAME
//THE DATA FILE MUST ALREADY EXIST AND BE WORLD WRITEABLE
$webweaver = "[EMAIL PROTECTED]";
$wwname = "Balaji Ankem";
$filename = "visitors.dat";

if (file_exists ($filename))
{

$user_name="Ramesh";
$user_mail="[EMAIL PROTECTED]";

mail($webweaver,"Visitor to PHP Example Form page",
"$user_name <$user_mail> just visited your site and submitted the form
at www.auburn.edu/helpdesk/php/form.html.",
"From: $user_name <$user_mail>");

mail($user_mail,"Thanks for visiting","Dear $user_name,\n
We appreciate your visit.\n\n$wwname\n<$webweaver>",
"From: $wwname <$webweaver>");

echo "<p>Your name: <b>$user_name</b><br>
and e-mail address: <b>$user_mail</b><br>
have been sent to the webweaver, <b>$wwname</b>,
and a response has been e-mailed to
you.<p>
Not only that, you've been added to our records!</p>";

// record the visitor info
$user_info = $user_name . " - " . $user_mail . "\n";

// open the file in append mode
$handle = fopen ($filename,'a+');

fputs($handle,$user_info);

//close the file
fclose($handle);

}
else
{
echo "<b>The file $filename does not exist and needs to be created for
this to work.</b>";
}

?>

=========================================


Thanks and Regards
Balaji

-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 10:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Email error (Was: Hi Jason)


On Wednesday 03 July 2002 00:24, you wrote:
> Hi Jason,
>  when I am trying to send email through email.php
>  I have got following errors.....
>
> =================
> Warning: Server Error in c:\www\imac\email.php on line 18
>
> Warning: Server Error in c:\www\imac\email.php on line 22 
> ================
>
> What will be the reason?
>
> Thanks and Regards
> Balaji

Please do not write to me directly. If you need help privately then I
would 
need to charge a consultation fee. I'm placing this back onto the list
where 
it belongs. Unless, that is, you really do want to pay a consultation
fee, in 
which case let me know and we'll take it back private :)

BTW you need to provide more info than that before people can help. How
about 
some code? Don't forget to indicate where line 18 & 22 are.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Rube Walker: "Hey, Yogi, what time is it?"
Yogi Berra:  "You mean now?"
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to