I need to extract the embedded images in a email body and store it as an attachment into DB. When I see the mail content it has a <img> tag and starts with a src & cid followed by the Content-ID. But how to extract it and store as an attachment? I think i need to call outlook server to extract it. Someone please help me on this?

 

it is shown something like this in mail message [cid:*** Email address is removed for privacy ***]

<img width=3D221 height=3D124 id=3D"_x=
0000_i1029"
src=3D"cid:*** Email address is removed for privacy ***">

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.