php email problems

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
   This script file ran till I had a HD crash and had to rebuild my  
server.   Unfurtunately I had everything backed up but some files from  
this is a simpel formtoemail script that come with webforms.
if I run the script from a shell it sends the email
if I run it from a www page I do not get an email.

this is the current printout I get if the mail does not send.
mail returned FalseThe following was sent on 22/02/07(Thu) @ 15:41  
--------------------------------------------------------- submitBtn:  
Submit name: Allan R. Batteiger address: 3413 Crescent Ct city: Plano  
state: TX zip: 75093 phone: 469-366-9892 email: comments:  
License_Class: Radio MB Only Scout_Info: Scout leader Troop_Number: T2819
Notice: Undefined variable: php_errormsg in  
/home/WB5QNG/public_html/RMBformtoemail.php on line 67

I am attempting to find out why the mail() funtion did not work.
my sinppet of code looks like this:
    // send the email
    if(mail($your_email, $subject, $message, "From: $name <$email>"))
        { // go to return URL
          if (isset($thankyou)) {
                header("Location: $thankyou");
        echo " mail returned False";
        echo $message;
        echo $php_errormsg;

I am not a php programmer and I have spent the last couple fo days trying  
to figure out how to get any possible error messages from this script to  
enlighten me as to where the problem may be.  Any help would be greatly  
System is Linux FC6 / Apache / PHP / CommuniGate Pro ( email server)


Re: php email problems

Quoted text here. Click to load it



Or define it in php.ini/httpd.conf/.htacces
Rik Wasmus

Site Timeline