Monday, August 1. 2005mail() without sendmail on linux - a hackComments
Display comments as
(Linear | Threaded)
defining another mail() function is a good idea. another way, without recompiling your php environment, is replacing the shell script, which uses sendmail, with a custom php cli script. the mail, header + body, is piped through this script. grab the mail via $fp = fopen("php://stdin", "r"); and send the mail via smtp-auth or whatever, to your target. php uses the exit code, to verify, that everything is ok. ciao Mathias
Hrm, that might work.
In all honesty, the entire reason for this is that the DC owners couldn't get it through their head that Sendmail can be used solely sending mail from the local box, and nothing else. But they still disallowed it. - Davey |
About MeConferencesNone at this time! CalendarQuicksearchTagsBlog Administration |


This morning, I read Davey's post about how to compile PHP in a way that allows you ro specify your own mail() function. This is kind of a cool hack, but I've been using a different approach for a while, now, that allows much better control. Read on if yo
Tracked: Aug 01, 20:19