Save outlook message in .eml

Good morning, I want to know how to save an object Outlook.MailItem in
..eml (MIME email format)?

Thank you
0
Cappelletto
6/22/2015 12:27:09 PM
embarcadero.delphi.ole 598 articles. 1 followers. Follow

1 Replies
2076 Views

Similar Articles

[PageSpeed] 54
Get it on Google Play
Get it on Apple App Store

Cappelletto wrote:

> Good morning, I want to know how to save an object Outlook.MailItem in
> .eml (MIME email format)?

Use the MailItem.SaveAs() method to save the email in olTXT format with an 
..EML file extension.

If that does not wor for you, use MailItem.SaveAs() to save the email in 
olMSG format to a .MSG file instead, and then use Outlook's own MsgConvert 
class, or a third-party script/library/website (which there are PLENTY of), 
to convert the .MSG file to an .EML file.

Or, create (or otherwise obtain, though I don't know how) an IMessage interface 
for the MailItem data, and then use Outlook's IConverterSession interface, 
specifically its MAPIToMIMEStm() method, to convert the data to an IStream 
in EML format, and then you can save the IStream (such as by using the RTL's 
TStreamAdapter class to wrap an IStream implementation around a TFileStream).

-- 
Remy Lebeau (TeamB)
0
Remy
6/22/2015 7:58:03 PM
Reply:

Similar Artilces:

Save outlook message in .eml #2
Good morning, I want to know how to save an object Outlook.MailItem in ..eml (MIME email format)? Thank you ...

Save outlook message in .eml #3
Good morning, I want to know how to save an object Outlook.MailItem in ..eml (MIME email format)? Thank you ...

Drag/drop from Windows Mail or Outlook Express onto Delphi app and save message file
Using the component: http://melander.dk/delphi/dragdrop However, while they currently have an example for Outlook, they don't have an example for Windows Mail or Outlook Express. Has anyone got code demonstrating how to save the email message after a drag/drop operation from Windows Mail to a Delphi app using this component? I tried the demos and came close to the answer but I am unable to retrieve the body of the email message. I am posting my code in the attachments group. -- Regards, -Steve Faleiro- ...

Saving messages as .eml
I need to save several messages in a folder to make them accessible off- line, for users without internet access or without TB (yes there are some users who prefer other clients). Saving them in a folder as .eml files seems to be a good idea. The filename looks like this [Subject][From] [Date].eml I would like to change the filename rather to [Date][From][Subject].eml so that I can sort the messages on their original date in the folder. Is there a way to do this? "R�cz Mikl�s" <mracz@freemail.hu> wrote in message news:EIWdnZrUuOxrQCfOnZ2dnUVZ_gydnZ2d@mozilla.o...

Saving saved messages
I am going to do a reformat. How can I save my filters and saved messages? Terry wrote: > I am going to do a reformat. > > How can I save my filters and saved messages? > You could try Mozbackup: http://mozbackup.jasnapaka.com/ -- I wasn't born stupid; I've had to work hard at it all my life. David Craft ...

superreview cancelled: [Bug 284381] open/view/save attachments of .eml file in browser : [Attachment 193466] fix opening of attachments from saved messages
David Bienvenu <bienvenu@nventure.com> has cancelled David Bienvenu <bienvenu@nventure.com>'s request for superreview: Bug 284381: open/view/save attachments of .eml file in browser https://bugzilla.mozilla.org/show_bug.cgi?id=284381 Attachment 193466: fix opening of attachments from saved messages https://bugzilla.mozilla.org/attachment.cgi?id=193466&action=edit ------- Additional Comments from David Bienvenu <bienvenu@nventure.com> wrong bug, sorry ...

superreview requested: [Bug 284381] open/view/save attachments of .eml file in browser : [Attachment 193466] fix opening of attachments from saved messages
David Bienvenu <bienvenu@nventure.com> has asked Scott MacGregor <mscott@mozilla.org> for superreview: Bug 284381: open/view/save attachments of .eml file in browser https://bugzilla.mozilla.org/show_bug.cgi?id=284381 Attachment 193466: fix opening of attachments from saved messages https://bugzilla.mozilla.org/attachment.cgi?id=193466&action=edit ------- Additional Comments from David Bienvenu <bienvenu@nventure.com> this fixes the opening of attachments from saved local messages - the mailbox uri in the case of saved local messages is not useful, so we use t...

MAPI or OLE: save mails as EML
Hi, I order to store all incoming mail into our application, we cuurently force the user to save their mail (with their default mailer) as .eml extension. Then thoses file are integrated in our document manager. We would like to automate this process: The user get the list of his incoming message in his PB app, then choose which one has to be archived. Our application must catch this message in EML format. We decided to qualify this format (eml) because it can be esaily read by any application (header, text and attachement files are regourped in a "mail"). How can I...

Exception by saving selected messages in Thunderbird as EML
Hello! I am trying to develop a simple Thunderbird extension and I need your help. It should save the currently selected messages in Thunderbird as EML-files into the filesystem. I've got the following code-fragment: .... var uris = {}; var uriCount = {}; gDBView.getURIsForSelection(uris, uriCount); // get currently selected eMail-messages var selectedMails = uris.value; if((selectedMails != null) && (selectedMails.length > 0)) { var eMailFile = null; for(var i = 0; i < selectedMails.length; i++) { // following code only works, ...

Read an outlook (express or not) body of message file with Delphi
Hello to the Delphi gurus out there, Any idea on how to read the text of a message from a *.msg file Ms outlook or express we get a lot of deamon generated messages of bad addresses (I swear I do not engage in spamming) and we would like to extract the bad email to check them hence extracting the returns save them in a directory and extract who it was sent to I know how to do that if we convert each messages as a text file but it is a waste time it would be very fast that straight from the original I googled my fingers away but no results yes any clues Thanks Philippe Waatel Hi,...

GW equivalent to Outlook's message save (to .msg)
With Outlook its possible to save the WHOLE message including all the attachments and message to a .msg file. Is there a equivalent in GW?? Save as an .eml file Cheers Dave -- Dave Parkes [NSCS] Occasionally resident at http://support-forums.novell.com/ Dave Parkes wrote: > Save as an .eml file > > Cheers Dave > > Does 8 open these? You can do that in 7 as well but then you have to open them in outlook express (to my knowledge) which leads to the awkward question of why do I have to use another e-mail program to read mail I saved out of...

Drag/drop from Windows Mail or Outlook Express onto Delphi app and save
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --JivePart=_3d174.zeB8CwDOH5aMJzMl Content-Type: text/plain; charset="Utf-8" See related post in e.p.d.thirdpartytools.general -- Regards, -Steve Faleiro- --JivePart=_3d174.zeB8CwDOH5aMJzMl Content-Type: application/octet-stream; name="oedragdrop.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="oedragdrop.zip" UEsDBBQAAAAIANJ70jxumreApgAAAP8AAAAZAAAAT0VEcmFnRHJvcC9PRUR...

Save Message dialog on unedited message
If I create a new message, or reply to an existing message, and then immediately delete the message, I get a "Save Message" dialog that says, "Message has not been sent. Do you want to save the message in the Drafts folder?". It used to be, in some earlier versions of TB, that I would only get this dialog if I had made any changes in the composition window, but now it always pops up. I like the older behavior better. The newer behavior is only useful if I intend to save a blank message in my Drafts folder, which I would never do and, if I really wanted to, could d...

How-to re-import/incorpore previously saved old "*.eml" messages in T.B.
Hi, I can read previously saved "*.eml" messages, but how-to re-incorpore these ones in my normal mail boxes ? Thanks ! -- Oedipe Oedipe wrote: > Hi, > > I can read previously saved "*.eml" messages, but how-to re-incorpore > these ones in my normal mail boxes ? > > Thanks ! > see this thread "http://tinyurl.com/2zagqa" Hello, Nir �crivait (wrote) le (on) 06/06/2007 16:46: > see this thread > "http://tinyurl.com/2zagqa" Thanks, but it's really all a mess to do such a very simple thi...

Web resources about - Save outlook message in .eml - embarcadero.delphi.ole

Microsoft Outlook - Wikipedia, the free encyclopedia
For the email and news client bundled with certain versions of Microsoft Windows, see Outlook Express . For the webmail client, see Outlook.com ...

J.P. Morgan Analyst Doug Anmuth Reverses Course On Facebook Outlook
Facebook got its first good news from Wall Street in 2013, as J.P. Morgan Analyst Doug Anmuth wrote in a research note that he was “incrementally ...

Microsoft Integrates Facebook into Outlook
On the heels of a recent Facebook Pages integration with Docs.com , Microsoft has again Facebook-ized its products by allowing Outlook users ...

Outlook Magazine (@Outlookindia) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

bit-player - An amateur's outlook on computation and mathematics
In a few days bit-player will celebrate its seventh birthday. (The first published post was dated January 9, 2006.) The original design for the ...

LinkedIn for Outlook - LinkedIn
LinkedIn for Outlook Your Professional Network within Microsoft Outlook Get more info about your important contacts, see what they're doing, ...

Count Down App Free - Big Day Calendar Event Clock Outlook,Yahoo Mail Reminder on the App Store on iTunes ...
Get Count Down App Free - Big Day Calendar Event Clock Outlook,Yahoo Mail Reminder on the App Store. See screenshots and ratings, and read customer ...

Izzy shift gives Beale fresh attacking outlook
KURTLEY Beale says he will embrace his impending move to fullback for the NSW Waratahs in order to get Israel Folau into their front line of ...

Microsoft Outlook on iOS updated w/ 3D Touch support, more
Microsoft today has released an update for its Outlook app on iOS that brings the app to version 2.0.8. The update makes Outlook join the growing ...

Chanticleer CEO Outlook - Business turns to data to fight off disrupters
... issue for CEOs in 2016 as digital disruption replaces political dysfunction as the biggest threat to their businesses. Chanticleer CEO Outlook ...

Resources last updated: 12/22/2015 2:38:48 AM