In some shared hosting environments (like mine) if a php script is launched via command line by a user (with an email forwarder or as a cron job), it may not have access to mysql socket.
If one sets "localhost" as database host in mysql_connect, php tries to connect directly to the local socket instead of using TCP/IP.
In my case, email piping do not work if I set "localhost" as database host, because hesk_pipe.php script returns an error (can't connect to database).
I had to set 127.0.0.1 as database host in order to make email piping work.
Hope this helps someone else...
cheers,
Alberto
make email piping work in some shared hosting environments
Moderator: mkoch227
Re: make email piping work in some shared hosting environmen
Thanks for the heads-up and sharing your solution!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools