Koozali.org: home of the SME Server

E-Smith & PHP mail function

Thomas Kristensen

E-Smith & PHP mail function
« on: October 24, 2002, 03:32:43 PM »
Hi,

I realize subject has been covered a few times in these forums, however I haven't found a solution that works.

Setup is SME 5.5, update 2. I've made some php pages that shoots off emails using the mail function. This works great as long as I send email to users on my own domain, as soon as I target email addresses outside my domain these entries show up in the qmail/current log:

@400000003db7ca9517a87afc info msg 1638507: bytes 614 from qp 1831 uid 100
@400000003db7ca951913e23c end msg 1638507

hence nothing happens. I've tried altering the php.ini file and restarting the httpd after each change. Apparently this has something to do with the sendmail_path parameter but I've had no luck in changing it to something that works.

I really appreciate any help you can give...

Cheers,
Thomas Kristensen

Thomas Kristensen

Re: E-Smith & PHP mail function
« Reply #1 on: October 24, 2002, 09:18:07 PM »
Duh, sorry for the disturbance... It turns out that I am unable to keep track of my variablenames and if you send an email to nowhere it gets nowhere :-)

So, it was _all_ my own fault...

Cheers,
Thomas

Nathan Fowler

Re: E-Smith & PHP mail function
« Reply #2 on: October 24, 2002, 09:19:49 PM »
You could always issue a shell_exec() to the /bin/mail function, I believe there are security issues with the PHP mail function:

http://www.securiteam.com/unixfocus/5SP0M2080W.html

As an FYI, the path to sendmail is /usr/sbin/sendmail

Hope this helped,
Nathan