
| Subject: | DELPH 2009 How Read E-Mail address from a Mail message in olFolderSentMail? [Edit] |
| Posted by: | Bruno Martins |
| Date: | Thu, 29 Apr 2010 |
Hi,
I'm a newest in forum.
I have a question, that Mr Yorai Aminov know the answer, but i can't talk with him, and i thanks helps of anyone.
I have the folow code:
Var
OApl, ONS, OPasta, OMensagens,
OMensagensFiltradas: Variant;
Pastas:Variant;
itemMail :Variant;
Begin
OApl := CreateOLEObject('Outlook.Application');
ONS := OApl.GetNameSpace('MAPI');
OPasta := ONS.GetDefaultFolder(olFolderSentMail);
OMensagens := OPasta.Items;
For i=1 to 10 do
begin
A1:= OMensagensFiltradas.Item[IntContador].SubJect;
end
I know thats have an function or property to get the recipient Address (Sended to:)
The outlook resolved the names of sent itens, and i could get only the name resolved.
I Need to " extract" the recipient address email like te…@inforportugal.com
If it's possible, send me a code sample.
Thanks!!!
Portugal Wins the World Cup!
i'm joke... they are very good players but only Cristiano Rolando wins more than 1.000.000€ / month...
Edited by: Bruno Martins on Apr 29, 2010 9:28 AM