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
Solved

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

Posted on 2008-10-31
7
5,003 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 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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: …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 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