是否有一个开源电子邮件消息(标题,附件等)解析器? [英] Is there an open-source eMail message (headers, attachments, etc.) parser?

查看:84
本文介绍了是否有一个开源电子邮件消息(标题,附件等)解析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个免费的开源解决方案,将原始电子邮件(作为一条文本)接收并返回每个标题字段,每个附件和消息正文作为单独的字段?

Is there a free open-source solution taking raw e-mail message (as a piece of text) and returning each header field, each attachment and the message body as separate fields?

推荐答案

是的,这是一项常见的任务,并且有很多api可以帮助您.

Yes, this is a common task and there are a number of apis out there to help you.

如果使用Java,我将查看 JavaMail .

If working with Java, I'd look at JavaMail.

如果使用PHP,我将查看 PECL mailparse 梨邮件.

If working with PHP, I'd look at PECL mailparse or Pear Mail.

这篇关于是否有一个开源电子邮件消息(标题,附件等)解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆