receiver's e-mail adresse

H

hohu21

Hi all,

I try to get the receiver's e-mail adresse in a mail but no result !
i got already its name with "item.To".
Please help me
Thanks a lot

Pierre
 
K

Ken Slovak - [MVP - Outlook]

What version of Outlook?

In Outlook 2003 you can use MailItem.SenderEmailAddress.
 
H

hohu21

Thanks for your message.
I work with Outlook 2003.
I'm not looking for sender's email address but receiver's email
address.
Please help me

Pierre
 
D

Dmitry Streblechenko

Loop through the recipients in the MailItem.Recipients collection and check
the Recipient.Address property.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
H

hohu21

Thanks for your message.
I would like to get the code about "MailItem.Recipients", if someone
can help me.
Thanks

Pierre


Dmitry Streblechenko a écrit :
 
H

hohu21

Thanks for your message.
I would like to get the code about "MailItem.Recipients", if someone
can help me.
Thanks

Pierre


Dmitry Streblechenko a écrit :
 
D

Dmitry Streblechenko

for each Recip in MailItem.Recipients
if Recip.Type = olTo Then
MsgBox Recip.Address
End If
next

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Thanks for your message.
I would like to get the code about "MailItem.Recipients", if someone
can help me.
Thanks

Pierre


Dmitry Streblechenko a écrit :
 
H

hohu21

Thank you very much,
that works well !

Pierre

Dmitry Streblechenko a écrit :
for each Recip in MailItem.Recipients
if Recip.Type = olTo Then
MsgBox Recip.Address
End If
next

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Thanks for your message.
I would like to get the code about "MailItem.Recipients", if someone
can help me.
Thanks

Pierre


Dmitry Streblechenko a écrit :
Loop through the recipients in the MailItem.Recipients collection and
check
the Recipient.Address property.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Thanks for your message.
I work with Outlook 2003.
I'm not looking for sender's email address but receiver's email
address.
Please help me

Pierre


Ken Slovak - [MVP - Outlook] wrote:
What version of Outlook?

In Outlook 2003 you can use MailItem.SenderEmailAddress.




Hi all,

I try to get the receiver's e-mail adresse in a mail but no result!
i got already its name with "item.To".
Please help me
Thanks a lot

Pierre
 

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