Detecting mail from

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
 
D

Dev Ashish

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
 
G

Guest

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-----
 
D

Dev Ashish

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
 
S

Stef

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
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top