how to parse email header in php?
I will be passing string containing raw email in which i want to parse headers. Might be Subject, text/html or attachments etc. Please help me on thi开发者_JAVA技巧s.
There's other libraries too, but this was my first hit on google. http://code.google.com/p/php-mime-mail-parser/
You will either needs to find the input in $_SERVER['argv']
or use fopen('php://input', 'r')
this can all be done with the php imap functions
Just use php's regex functions.
精彩评论