Detecting mail from

  • Thread starter Thread starter Stef ds
  • Start date Start date
S

Stef ds

Hi,

I have an application where I loop through the different
mail items in the inbox. Everything works fine (I can
detect to,bcc,subject,...) but I'm having difficulties
detecting the e-mail adress from the sender.

There is "SenderName" but this returns the displayed name
and not the actual e-mail address.

Can someone give me a clue on how/where to find it.

Thx
Stef
 
There is "SenderName" but this returns the displayed name
and not the actual e-mail address.

It's not available using Outlook Object Model. You'll have to use CDO. Look
at MAPI.Session and MAPI.AddressEntry.

-- Dev
 
Hi,

I originally started with cdo but one of my goals was to
save the mail (with mailitem(x).saveas...) but this isn't
possible with CDO (I think). So this creates my next
question, can I save a mail using CDO?

(Where I'm getting at is saving mails from inbox into
client folder. Client name detection is based on e-mail
address...)

Thx Stef

-----Original Message-----
 
I originally started with cdo but one of my goals was to
save the mail (with mailitem(x).saveas...) but this isn't
possible with CDO (I think). So this creates my next
question, can I save a mail using CDO?

While I haven't tried the SaveAs method, you can use CDO specifically to
retrieve the sender email address. I found this using Google.

[ http://groups.google.com/groups?selm=#1bJF9c6AHA.1256@tkmsftngp03
&oe=UTF-8&output=gplain ]

-- Dev
 
Thx Dev, just what I needed. Just been on hollyday,
that's why it took so long.

Bye
-----Original Message-----
[email protected]:

I originally started with cdo but one of my goals was to
save the mail (with mailitem(x).saveas...) but this isn't
possible with CDO (I think). So this creates my next
question, can I save a mail using CDO?

While I haven't tried the SaveAs method, you can use CDO specifically to
retrieve the sender email address. I found this using Google.

[ http://groups.google.com/groups?selm=% 231bJF9c6AHA.1256%40tkmsftngp03
&oe=UTF-8&output=gplain ]

-- Dev
.
 
Back
Top