DATA Step, Macro, Functions and more

Reading data from Outlook MSG files

Accepted Solution Solved
Reply
Regular Contributor
Posts: 179
Accepted Solution

Reading data from Outlook MSG files

Hi,

 

A coworker of mine had an automated process send out a bunch of emails and got a little over 1,000 bouncebacks for various reasons.  I was asked if there was any way to extract the email body from Outlook and put them in a file or something usable.

 

I have no idea.  I did look at a msg file Outlook produced and it is pretty obtuse.  Anyone have any suggestions on this one?

 

The emails aren't in MSG format yet but could be exported to that if needed.

 

Thanks!

 

--Ben


Accepted Solutions
Solution
‎07-19-2017 03:50 PM
Frequent Contributor
Posts: 119

Re: Reading data from Outlook MSG files

Posted in reply to BenConner
Export the folder as a CSV file. File ==> Export ==> Outlook data file ==> csv. YMMV but that is the general route. Import that into SAS.

You can also do it using C# or, much worse, VBA.

View solution in original post


All Replies
Solution
‎07-19-2017 03:50 PM
Frequent Contributor
Posts: 119

Re: Reading data from Outlook MSG files

Posted in reply to BenConner
Export the folder as a CSV file. File ==> Export ==> Outlook data file ==> csv. YMMV but that is the general route. Import that into SAS.

You can also do it using C# or, much worse, VBA.
Regular Contributor
Posts: 179

Re: Reading data from Outlook MSG files

Perfect!  Thanks so much, Alan.  Didn't know that was an option.

 

--Ben

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 224 views
  • 2 likes
  • 2 in conversation