CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2011
    Posts
    1

    how to save attachments from .eml files in C#

    I am using System.Net.Mail and System.Net.Mime classes and trying to open an .eml file and save the attached images, I got the attachments count by object.attachments.count
    but unable to save the attachments to the physical drive and also I am losing the format of the body when I assign the email.body to the new outputMessage object. please help.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: how to save attachments from .eml files in C#

    Been there, tried to do that and got absolutely nowhere.

    I then decided to make an Outlook add in, that saves each file to disk.

    Have a look at the attachment and see if it helps ytou
    Attached Files Attached Files

  3. #3
    Join Date
    Jun 2020
    Posts
    1

    Re: how to save attachments from .eml files in C#

    Extracting attachment is easy with a third party tool. you can extract attachments from EML via the Softaken EML Attachment Extractor tool.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured