开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜