[nycphp-talk] mail function in Linux-Apache
Carlos G. Chiossone
carlos at sprout.net
Tue Sep 16 12:17:23 EDT 2003
Thanks Hans,
Doing the tail -f does not give me anything when sending through PHP.
I am not able to su to apache, "user not available" have to wait for my linux guy to help me in that one.
And the php.ini settings do seem correct
[mail function]
; For Win32 only.
;SMTP = localhost
; For Win32 only.
;sendmail_from = me at localhost.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = '/usr/sbin/sendmail -t -i'
Will have to try to su when he gets in today.
Thanks,
Carlos
-----Original Message-----
From: Hans Zaunere [mailto:hans at nyphp.org]
Sent: Tuesday, September 16, 2003 12:00 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] mail function in Linux-Apache
Carlos G. Chiossone wrote:
> Hi guys, thanks in advance for helping.
>
> I am having strange issues with a Linux server running Apache. I can send emails from the command line using the mail command but when I try sending it from PHP it goes nowhere. I also don't get any errors neither on the Apache log file nor on the screen. My php.ini is set to give all errors and warnings and the mail is pointing to the correct directory where sendmail is, actually using the default path set by PHP.
A couple things to try:
--- tail -f /var/log/maillog and see if there are any errors indicated while trying to send from Apache, versus the mail command line tool
--- can Apache (assuming you're running PHP as mod_php) execute the required sendmail, etc binaries? Does it have the permissions? su to the user Apache is running as and try the mail command again
--- in the php.ini are the settings correct? I think the default is /usr/sbin/sendmail, which much exist and be executeable/readable by apache
HTH,
h
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list