RE: php/sendmail/apache/linux...(oops)

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

 



Aha!!!

Thanks to all who tried to help with the Sendmail/Php issues!!!! After lots
of frustration.. If you're going to use Sendmail, it appears that you need
to have a couple of RPMs installed the regular Sendmail and the Sendmail-cf
RPM. You may also have to modiy the following files in the /etc/mail
directory"
	sendmail.mc
	access

However, from what I've seen be careful. Basically you need to be sure that
your DNS/IP addresses match correctly and that the config files match your
situation. My network is behind a router using a cable modem......

So it wasn't a PHP issue, but a Sendmail config issue......

Thanks

Bruce
bedouglas@earthlink.net


-----Original Message-----
From: psyche-list-admin@redhat.com
[mailto:psyche-list-admin@redhat.com]On Behalf Of Doug Brucks
Sent: Saturday, January 25, 2003 2:31 PM
To: psyche-list@redhat.com
Subject: RE: php/sendmail/apache/linux...(oops)


I'm running stock RH 8.0 (fully up2date).  Has PHP version 4.2.2-8.0.5
I can't help you with sendmail... I never understood the configuration...
went with postfix instead.


At 08:23 PM 1/24/2003 -0800, you wrote:
>Doug...
>
>Since this appears to be a Sendmail config issue... Can you tell me the
RPMs
>you have for Sendmail and for PHP?? I'd be interested to compare what I
>have...
>
>thanks...
>
>bruce
>
>
>-----Original Message-----
>From: psyche-list-admin@redhat.com
>[mailto:psyche-list-admin@redhat.com]On Behalf Of Doug Brucks
>Sent: Friday, January 24, 2003 8:17 PM
>To: psyche-list@redhat.com
>Subject: Re: php/sendmail/apache/linux...(oops)
>
>
>When I pasted your code from the email... got some strange characters in
>the paste.  When I deleted them, I also deleted the '.' in front of the
>"Reply-To....  causing the parse error.  Works fine as is on my
>machine.  Sorry for the waisted bandwidth.
>
>At 09:57 PM 1/24/2003 -0600, you wrote:
> >I inserted the code you supplied (substituted my email address for yours)
> >between tags in a plain html page and ran it.
> >
> >I got a parse error on:
> >
> >$reply = "From: bedouglas@earthlink.net\r\n"
> >         ."Reply-To: bedouglas@earthlink.net\r\n";
> >
> >I changed that to:
> >
> >$reply = "From: bedouglas@earthlink.net\r\nReply-To:
> >bedouglas@earthlink.net\r\n";
> >
> >and it ran just fine (not as pretty, but it worked).
> >
> >Doug
> >
> >
> >At 12:47 PM 1/24/2003 -0800, you wrote:
> >>hey...
> >>
> >>I'm sure the question has been answered a 1000 times!!! I'm trying to
>create
> >>a simple app to send email via PHP, using the "mail" function.
> >>
> >>I'm using RedHat(Linux 8.0 , Sendmail), PHP(4.2.2), Apache (2.0.40).
> >>
> >>I'm using the following piece of code:
> >>
>
>>==========================================================================
>=
> >>//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>";
> >>
>
>>==========================================================================
>==
> >>===========
> >>
> >>Pretty simple eh... The problem that I have is that the mail doesn't
>appear
> >>to get sent. When I look in the /var/spool/clientmqueue directory, I see
a
> >>great deal of what look to be error msgs.... They appear to be telling
me
> >>that the mail couldn't be delivered, but I can't tell why....
> >>
> >>I was able to successfully send a test msg via Sendmail from the command
> >>line by telnet. So I know the Sendmail engine/daemon seems to be
> >>performing... The PHP.ini file appears to be setup correctly, with the
> >>sendmail_path pointing to sendamil.
> >>
> >>Any ideas as to what I need to do, or should be checking....
> >>
> >>Any pointers/assistance would be greatly appreciated.
> >>
> >>
> >>Thanks
> >>
> >>-Bruce
> >>bedouglas@earthlink.net
> >>
> >>
> >>
> >>
> >>--
> >>Psyche-list mailing list
> >>Psyche-list@redhat.com
> >>https://listman.redhat.com/mailman/listinfo/psyche-list
> >
> >
> >
> >
> >--
> >Psyche-list mailing list
> >Psyche-list@redhat.com
> >https://listman.redhat.com/mailman/listinfo/psyche-list
>
>
>
>
>--
>Psyche-list mailing list
>Psyche-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/psyche-list
>
>
>
>--
>Psyche-list mailing list
>Psyche-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/psyche-list




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



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