A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Retrieve the Email address from an automatically generated delivered/read message.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 4th 06, 07:46 PM posted to microsoft.public.outlook.program_vba
Gordon Filby
external usenet poster
 
Posts: 6
Default Retrieve the Email address from an automatically generated delivered/read message.

Hi,

does anyone have an idea how to do the subject using VBA? I have copied all
read/delivered messages into a single folder and would like to respond with
a standard message.

Many thanks,

Gordon Filby


Ads
  #2  
Old July 5th 06, 02:25 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Retrieve the Email address from an automatically generated delivered/read message.

You will need to use Extended MAPI/CDO 1.21/Redemption to read the message
recipients collection.
Note that the ReportItem object in the Outlook Object Model does not expose
the Recipients collection.

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

"Gordon Filby" wrote in message
...
Hi,

does anyone have an idea how to do the subject using VBA? I have copied
all read/delivered messages into a single folder and would like to respond
with a standard message.

Many thanks,

Gordon Filby



  #3  
Old July 5th 06, 10:57 AM posted to microsoft.public.outlook.program_vba
Gordon Filby
external usenet poster
 
Posts: 6
Default Retrieve the Email address from an automatically generated delivered/read message.

Hallo,

Thanks for the prompt reply.

Is there really no other way, I have no clue about Extended MAPI/CDO
1.21/Redemption.

A typical message looks like this:

Conferma del messaggio inviato a
alle 24/06/2006 13.19

Il messaggio è stato visualizzato nel computer del destinatario alle
26/06/2006 9.59



and the from line also includes the Email address I need. Is there no way I
can dig it out.? What kind of objects are these messages?



Thanks,



Gordon Filby







"Dmitry Streblechenko" schrieb im Newsbeitrag
...
You will need to use Extended MAPI/CDO 1.21/Redemption to read the message
recipients collection.
Note that the ReportItem object in the Outlook Object Model does not
expose the Recipients collection.

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

"Gordon Filby" wrote in message
...
Hi,

does anyone have an idea how to do the subject using VBA? I have copied
all read/delivered messages into a single folder and would like to
respond with a standard message.

Many thanks,

Gordon Filby





  #4  
Old July 5th 06, 06:12 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Retrieve the Email address from an automatically generated delivered/read message.

Using Redemption and assuming that the Folder variable points to an
Outlook.MAPIFolder object that contains the NDRs:

set Items = Folder.Items
set SafeReport = CreateObject("Redemption.SafeReportItem")
for each msg in Items do
if msg.Class =46 Then 'make sure it tis really a report
SafeReport.Item = msg
for i=1 to SafeReport.Recipients.Count
set Recip = SafeReport.Recipients.Item(i)
MsgBox Recip.Address
next
end If
next

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

"Gordon Filby" wrote in message
...
Hallo,

Thanks for the prompt reply.

Is there really no other way, I have no clue about Extended MAPI/CDO
1.21/Redemption.

A typical message looks like this:

Conferma del messaggio inviato a
alle 24/06/2006 13.19

Il messaggio è stato visualizzato nel computer del destinatario alle
26/06/2006 9.59



and the from line also includes the Email address I need. Is there no way
I can dig it out.? What kind of objects are these messages?



Thanks,



Gordon Filby







"Dmitry Streblechenko" schrieb im Newsbeitrag
...
You will need to use Extended MAPI/CDO 1.21/Redemption to read the
message recipients collection.
Note that the ReportItem object in the Outlook Object Model does not
expose the Recipients collection.

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

"Gordon Filby" wrote in message
...
Hi,

does anyone have an idea how to do the subject using VBA? I have copied
all read/delivered messages into a single folder and would like to
respond with a standard message.

Many thanks,

Gordon Filby







  #5  
Old July 7th 06, 10:05 AM posted to microsoft.public.outlook.program_vba
Gordon Filby
external usenet poster
 
Posts: 6
Default Retrieve the Email address from an automatically generated delivered/read message.

I'm afraid I don't know anything about Redemption either. What I think I
know is that it was devised to work around the security message "a program
is attempting to send Emails" or similar.

What this seems to me to mean is that if I run an older version of Outlook
(OL2000 - which doesn't have this hindrance) I should not need the
Redemption stuff. Is this correct and, if so, what part of the code below
can be used?

Many thanks again.

Gordon Filby


"Dmitry Streblechenko" schrieb im Newsbeitrag
...
Using Redemption and assuming that the Folder variable points to an
Outlook.MAPIFolder object that contains the NDRs:

set Items = Folder.Items
set SafeReport = CreateObject("Redemption.SafeReportItem")
for each msg in Items do
if msg.Class =46 Then 'make sure it tis really a report
SafeReport.Item = msg
for i=1 to SafeReport.Recipients.Count
set Recip = SafeReport.Recipients.Item(i)
MsgBox Recip.Address
next
end If
next

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

"Gordon Filby" wrote in message
...
Hallo,

Thanks for the prompt reply.

Is there really no other way, I have no clue about Extended MAPI/CDO
1.21/Redemption.

A typical message looks like this:

Conferma del messaggio inviato a
alle 24/06/2006 13.19

Il messaggio è stato visualizzato nel computer del destinatario alle
26/06/2006 9.59



and the from line also includes the Email address I need. Is there no
way I can dig it out.? What kind of objects are these messages?



Thanks,



Gordon Filby







"Dmitry Streblechenko" schrieb im Newsbeitrag
...
You will need to use Extended MAPI/CDO 1.21/Redemption to read the
message recipients collection.
Note that the ReportItem object in the Outlook Object Model does not
expose the Recipients collection.

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

"Gordon Filby" wrote in message
...
Hi,

does anyone have an idea how to do the subject using VBA? I have
copied all read/delivered messages into a single folder and would like
to respond with a standard message.

Many thanks,

Gordon Filby









  #6  
Old July 7th 06, 05:19 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Retrieve the Email address from an automatically generated delivered/read message.

That's just one reason why Redemption was created. Another reason is to
expose the functionality that available in the Outlook Object Model.
The code from my previous post illustrates both: OOM does not expose the
Recipients collection in its Outlook.ReportItem object
(Redemption.SafeReportItem does). Even if it did, it would be blocked.
The script will work in Outlook 98 and up.

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

"Gordon Filby" wrote in message
...
I'm afraid I don't know anything about Redemption either. What I think I
know is that it was devised to work around the security message "a program
is attempting to send Emails" or similar.

What this seems to me to mean is that if I run an older version of
Outlook (OL2000 - which doesn't have this hindrance) I should not need the
Redemption stuff. Is this correct and, if so, what part of the code below
can be used?

Many thanks again.

Gordon Filby


"Dmitry Streblechenko" schrieb im Newsbeitrag
...
Using Redemption and assuming that the Folder variable points to an
Outlook.MAPIFolder object that contains the NDRs:

set Items = Folder.Items
set SafeReport = CreateObject("Redemption.SafeReportItem")
for each msg in Items do
if msg.Class =46 Then 'make sure it tis really a report
SafeReport.Item = msg
for i=1 to SafeReport.Recipients.Count
set Recip = SafeReport.Recipients.Item(i)
MsgBox Recip.Address
next
end If
next

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

"Gordon Filby" wrote in message
...
Hallo,

Thanks for the prompt reply.

Is there really no other way, I have no clue about Extended MAPI/CDO
1.21/Redemption.

A typical message looks like this:

Conferma del messaggio inviato a
alle 24/06/2006 13.19

Il messaggio è stato visualizzato nel computer del destinatario alle
26/06/2006 9.59



and the from line also includes the Email address I need. Is there no
way I can dig it out.? What kind of objects are these messages?



Thanks,



Gordon Filby







"Dmitry Streblechenko" schrieb im Newsbeitrag
...
You will need to use Extended MAPI/CDO 1.21/Redemption to read the
message recipients collection.
Note that the ReportItem object in the Outlook Object Model does not
expose the Recipients collection.

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

"Gordon Filby" wrote in message
...
Hi,

does anyone have an idea how to do the subject using VBA? I have
copied all read/delivered messages into a single folder and would like
to respond with a standard message.

Many thanks,

Gordon Filby











  #7  
Old July 7th 06, 07:14 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Retrieve the Email address from an automatically generated delivered/read message.

"that available in the Outlook Object Model"
should read
"that was not available in the Outlook Object Model"

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

"Dmitry Streblechenko" wrote in message
...
That's just one reason why Redemption was created. Another reason is to
expose the functionality that available in the Outlook Object Model.
The code from my previous post illustrates both: OOM does not expose the
Recipients collection in its Outlook.ReportItem object
(Redemption.SafeReportItem does). Even if it did, it would be blocked.
The script will work in Outlook 98 and up.

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

"Gordon Filby" wrote in message
...
I'm afraid I don't know anything about Redemption either. What I think I
know is that it was devised to work around the security message "a
program is attempting to send Emails" or similar.

What this seems to me to mean is that if I run an older version of
Outlook (OL2000 - which doesn't have this hindrance) I should not need
the Redemption stuff. Is this correct and, if so, what part of the code
below can be used?

Many thanks again.

Gordon Filby


"Dmitry Streblechenko" schrieb im Newsbeitrag
...
Using Redemption and assuming that the Folder variable points to an
Outlook.MAPIFolder object that contains the NDRs:

set Items = Folder.Items
set SafeReport = CreateObject("Redemption.SafeReportItem")
for each msg in Items do
if msg.Class =46 Then 'make sure it tis really a report
SafeReport.Item = msg
for i=1 to SafeReport.Recipients.Count
set Recip = SafeReport.Recipients.Item(i)
MsgBox Recip.Address
next
end If
next

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

"Gordon Filby" wrote in message
...
Hallo,

Thanks for the prompt reply.

Is there really no other way, I have no clue about Extended MAPI/CDO
1.21/Redemption.

A typical message looks like this:

Conferma del messaggio inviato a
alle 24/06/2006 13.19

Il messaggio è stato visualizzato nel computer del destinatario alle
26/06/2006 9.59



and the from line also includes the Email address I need. Is there no
way I can dig it out.? What kind of objects are these messages?



Thanks,



Gordon Filby







"Dmitry Streblechenko" schrieb im Newsbeitrag
...
You will need to use Extended MAPI/CDO 1.21/Redemption to read the
message recipients collection.
Note that the ReportItem object in the Outlook Object Model does not
expose the Recipients collection.

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

"Gordon Filby" wrote in message
...
Hi,

does anyone have an idea how to do the subject using VBA? I have
copied all read/delivered messages into a single folder and would
like to respond with a standard message.

Many thanks,

Gordon Filby













 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I automatically save email address to address book from inbox 1stCaravanHire Outlook - Using Contacts 2 June 14th 06 03:18 PM
How do I retrieve a secondary e-mail address from aol in outlook? brilinadams Outlook - Installation 0 May 31st 06 01:38 AM
Read and Delivered status? FF Outlook - General Queries 0 May 4th 06 05:59 PM
How to retrieve a sent message Al & Sharon Outlook Express 2 February 8th 06 02:48 AM
Outlook 2003 - automatically mark all Junk email as "read" Ric Outlook - General Queries 8 January 19th 06 01:52 PM


All times are GMT +1. The time now is 10:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.