开发者

how to parse email header in php?

开发者 https://www.devze.com 2023-02-05 18:31 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消