I wanted to know that is there any script or tool available which can do the same task what
mail.log does in php5.3
Thanks.
I wanted to know that is there any script or tool available which can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not aware of a tool that would do the equivalent of what
mail.logdoes in PHP. Your two best bets IMO are Xdebug and strace. Both do much more than what you are looking for though.An alternative would be to wrap the call to
mail()in your own function and then use that instead of the native function in your application, which is probably the most sane solution if you are just after having a mail log.Yet another alternative would be to rename the function with runkit and then redefine
mail()to call the renamed function. But runkit is runkit, e.g. you dont want that in your production code.