Solved

How to convert/save MailMessage as Outlook .msg file?

Posted on 2008-10-31
7
5,077 Views
Last Modified: 2013-11-30
I'm looking for help in creating a .msg Outlook-format file from a MailMessage (System.Net.Mail) object.

I have to send the email via an SMTP server (not Exchange), and then store the email (with attachments, etc) via a webservice that requires it to be sent in Outlook .msg format.

I don't mind saving it in some other format (e.g. eml) and then converting, but a direct solution would be preferable.  I have considered creating the email twice, once in a MailMessage object, and then again in an

Any help would be appreciated.

Robin McKenzie
0
Comment
Question by:IndigoTeam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22856296
have a look at the following link
it shows you how to save the mailmessage as .eml but can you save it as .msg also
http://www.rebex.net/mail.net/tutorial-mail-message.aspx#loading-and-saving
0
 

Author Comment

by:IndigoTeam
ID: 22865860
ragi0017, thanks for the info, but I was hoping to find a solution that doesn't involve a third-party ($1000!) tool.
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22868436
sorry my mistake did not see its a product companys site

anyways what you are trying to achieve is not given by microsoft directly
if your requirement is to save the message and the send it through a web service (assuming it to be a .net one) then you can serialize your mail message class object to xml and save and then can deserialize it to get the mail message again.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 22868511
I know you don't want 3rd party products but if other are looking this question, I think it is worth mentionning the new version of
http://www.aspose.com/community/blogs/aspose.network/archive/2008/10/24/aspose-network-v4-2-0-0-supports-outlook-message-files-reading-writing.aspx 
0
 
LVL 50

Assisted Solution

by:Gustav Brock
Gustav Brock earned 250 total points
ID: 22871159
Well, if you can live with to have Outlook installed, this cheap util may be the trick if you save your e-mails as eml files:

http://bitdaddys.com/outlookEMLandMSGconverter.html

/gustav
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question