Solved

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

Posted on 2008-10-31
7
4,789 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
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 69

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 49

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now