winmail.dat

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi all

would appreciate any help on decoding winmail.dat files from within C# code?
i am getting winmail.dat files in emails and would like to write something
to decode the file and save the attachments to a folder.

Thanks
Jason
 
Hi Jason!

I used a program with the rather unfortunate name of WMDencode for
winmail.dat files. I would strongly recommend using yEnc though as its a lot
nicer.
You sould be able to invoke it from your C# program like this:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="c:\\WMDencodeDir\\WMDencode.exe -arg1 -arg2
c:\\pathToMail\\winmail.dat";
proc.Start();
MessageBox.Show("Mail Files Retrieved");

ok,
aq
 
thanks!

looked at WMDecode, this i have to pay for, which is probably not a problem,
but perhaps there is something out there that does the same thing but is
free?

had a look at yEnc too, but that is for yEnc(oded) files only. i put a
winmail.dat file through the yEnc, and it didnt do anything with it. unless
i am doing something wrong

Thanks again
Jason
 
Back
Top