If you didn't un-emerge the ssmtp first, then you will have two mail systems competing 
for the necessary port(s).

I personally would use Postfix or qmail instead of sendmail - the configuration is 
easier to do and understand, and both are drop in replacements for sendmail.

Have you checked your logs?  You will likely see errors in either the Apache / PHP 
logs, or in your mail logs (most likely).  These errors should point you in the right 
diretion for resolving the problem.

HTH

Shawn

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Nick W
Sent: Tuesday, April 27, 2004 8:13 AM
To: CLUG General
Subject: [clug-talk] Sendmail & PHP


I'm having problems with the mail() function in PHP. I don't think its my code 
causing the issue. I tried running it and it quickly returned a failure. Then 
I RTFM and realised I needed sendmail installed. Thats where my fun began. 
Sendmail was blocked (we're talking emerge here) by the virtual MTA package. 
So I killed that from the sendmail ebuild rather than unmerging ssmtp. Got 
sendmail installed, and put the path in php.ini (with the reccomended 
switches), then restarted apache2.

Now instead of returning an immediate failure it sits there for like 20 
seconds then fails but the mail() function never says why, just 1 or 0. 
Anyone with insight? Im a sendmail n00b in every sense of the term.

Thanks.
-- 
Nick W ([EMAIL PROTECTED])
Registered Linux User #324288 (http://counter.li.org)
MSN Messenger: [EMAIL PROTECTED]
Yahoo: foolish_gambit
ICQ: 303276221

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to