How to get debug stdout of command launched by mail();?

71 Views Asked by At

I’m facing a special situation : the php mail(); functions works when I use a cli script, but it succeeds without sending anything (it just returns true) when I’m running it on the website through appache. My php.ini files are all identical.

I know sendmail command (msmtp) can sometimes fails while steel returning successfully (it says so through a message on stdout). So how I can get the stdout created by msmstp through php in apache2 ?

0

There are 0 best solutions below