How to extract photos from email?

烂漫一生 提交于 2019-12-08 11:24:11

问题


I have a need to poll a mail server and then extract a photo that is either embedded or attached to the email message.

The goal is to extract the photo and save it to a disk file. The desired functionality is much like emailing a photo from your phone to Twitter, Flickr, etc.

Any insights/advice appreciated.

Thanks


回答1:


If you are polling via POP3 then link text will be useful.

Any way, there is the System.Net.Mail.MailMessage class. It has Attachments property at least.




回答2:


I have used this in the past: Dart Power TCP. It is NOT a free product but it works well. I was able to check and parse POP email messages without too much trouble. I think you could grab email attachments and/or get image URLs out of HTML emails with this tool.



来源:https://stackoverflow.com/questions/2256568/how-to-extract-photos-from-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!