Article View: borland.public.cppbuilder.internet.socket
Article #5526TIdMessage->LoadFromFile
From: Alfred Thomas
Date: Thu, 29 Jul 2004 13:55
Date: Thu, 29 Jul 2004 13:55
20 lines
1546 bytes
1546 bytes
Hi
I want to load an e-mail into a TIdMessage from disk. I have the following code:
TIdMessage * Msg = new TIdMessage(NULL);
Msg->LoadFromFile("Whatever.eml");
ShowMessage(Msg->Body->Text);
delete Msg;
The problem is that the email on disk contains text in the body but in the TIdMessage(After loading from file) TIdMessage->Body->Text contains the following:
This is a multi-part message in MIME format.
The email on disk is a TIdMessage that was saved previously. When I open it in Outlook the body is as it should be.
All the other properties(Header,Subject,Recipient,Sender etc.) as well as the attachments, are correct. It is only the Body property that isn't.
Any ideas?
Regards
Alfred Thomas
Technical Details
Message-ID:
<410901cf$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ef6a1e5c85f95618,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Alfred Thomas" <alfred@fischerint.co.za> Sender: "Alfred Thomas" <alfred@fischerint.co.za> Reply-To: "Alfred Thomas" <alfred@fischerint.co.za> Subject: TIdMessage->LoadFromFile Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 196.25.217.126 X-Forwarded-For: 192.96.150.189 NNTP-Posting-Host: 207.105.83.66 Message-ID: <410901cf$1@newsgroups.borland.com> Date: 29 Jul 2004 06:55:27 -0700 X-Trace: newsgroups.borland.com 1091109327 207.105.83.66 (29 Jul 2004 06:55:27 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail