Re: php/sendmail/apache/linux...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This one time, at band camp,
"Bruce Douglas" <bedouglas@earthlink.net> wrote:

> //test mail....
> $to = "bedouglas@earthlink.net";
> $subject = "savannah registration";
> $message = " testing mail";
> $reply = "From: bedouglas@earthlink.net\r\n"
>         ."Reply-To: bedouglas@earthlink.net\r\n";
> 
> echo"
>  to = " . $to . "<br>";
> 
> echo"
>  subject = " . $subject . "<br>";
> 
> echo"
>  msg = " . $message . "<br>";
> 
> echo"
>  reply = " . $reply . "<br>";
> 
>          $q1 = mail($to, $subject, $message, $reply);
> echo"
>  return val  = " . $q1 . "<br>";

if you compiled php yourself and installed, the mail() function is 
broken due to a broken autoconf in RedHat. You can fix this by downgrading
to 2.13.

in your script itself, add some error checking when sending mail...

if( $q1 != mail($to, $subject, $message, $reply)){
   echo 'Could not send mail';
 }else{
  echo 'Mail sent happily';
 }

or something

Kevin
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Kevin Waterson
Port Macquarie, Australia



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux