EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Recieve (S)POP3 Message and get/save Mailtext only

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#23114
Posted: 01/10/2013 04:54:11
by Anton Kufer (Standard support level)
Joined: 12/18/2012
Posts: 16

We're still new to using SecureBlackbox and it's POP3 features. Yet we did the POP3 calls by now using indy.

I'm still having trouble getting the plain mailbody/text from an email.

Code
var t_POP3: TElPOP3Client;
    t_Message: TELMessage;

                t_POP3.ReceiveMessage(t_Index,'','',[mpoStoreStream,mpoLoadData,mpoCalcDataSize],true,true,true,t_Message);

                t_Message.MainPart.GetText(t_WideString);

                ShowMessage(t_WideString);


The message should contain data in an XML structure send by our webclient. I've send me a test mailmessage via mail.lv.

The Mailcount is correct, size shows some different sizes, atleast it shows something:

Code
          t_Size := t_POP3.GetMessageSize(t_Index);
          ShowMessage(IntToStr(t_Size));


But the "ShowMessage(t_WideString);" just delivers an empty string, so it seems the gettext function does not work? I guess it's just a matter of an option to set or something?

As said i don't care about anything else from the mail, i just need to get the plain XML content of the mailtext/body.

Can you help me?
#23115
Posted: 01/10/2013 05:03:05
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Please refer to \EldoS\SecureBlackbox.VCL\Samples\Delphi\MIMEBlackbox\Viewer sample. It shows how to get content of messages in different formats.

Reply

Statistics

Topic viewed 692 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!