Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Retrieve the Email address from an automatically generated delivered/read message. (http://www.outlookbanter.com/outlook-vba/19718-retrieve-email-address-automatically-generated.html)

Gordon Filby July 4th 06 07:46 PM

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



Dmitry Streblechenko July 5th 06 02:25 AM

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




Gordon Filby July 5th 06 10:57 AM

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






Dmitry Streblechenko July 5th 06 06:12 PM

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








Gordon Filby July 7th 06 10:05 AM

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










Dmitry Streblechenko July 7th 06 05:19 PM

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












Dmitry Streblechenko July 7th 06 07:14 PM

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















All times are GMT +1. The time now is 11:30 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com