Results 1 to 3 of 3

Thread: [RESOLVED]sendmail_from error

  1. #1

    Thread Starter
    Lively Member rasana's Avatar
    Join Date
    Jan 2007
    Location
    Mumbai, (India)
    Posts
    94

    [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.

  2. #2
    Addicted Member
    Join Date
    Dec 2004
    Posts
    143

    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

  3. #3

    Thread Starter
    Lively Member rasana's Avatar
    Join Date
    Jan 2007
    Location
    Mumbai, (India)
    Posts
    94

    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
  •  



Click Here to Expand Forum to Full Width