|
-
May 5th, 2007, 02:11 AM
#1
Thread Starter
Lively Member
[RESOLVED]sendmail_from error
Hi All,
I have written mail() function in php, but it gives following error
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in d:\websagar_projects\php\www\websagar_net\order_form1.php on line 45
I checked apache server n restarted also..but it's not working..
what does this error means?
is this error related to mailserver?
following is coding of mail()
PHP Code:
$sendto = "[email protected]";
$frmEml = "veena";
$headers = "From: $frmEml \r\n";
$subject = "$plnName Enquiry Form";
mail($sendto, $subject, $frmdata, $headers);
Last edited by rasana; May 7th, 2007 at 07:35 AM.
-
May 5th, 2007, 03:32 AM
#2
Addicted Member
Re: sendmail_from error
You're only sending out 1 header so try removing the "\r\n" (as this is used to separate multiple headers).
F
-
May 7th, 2007, 07:34 AM
#3
Thread Starter
Lively Member
Re: sendmail_from error
To Ferris,
Thanks for replying. I removed "\r\n" but still it was giving error..
but it's ok. now problem has solved..
there was some setting problem in mail server..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|