Help!

Persist all recipients on Item forward event

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  Update source in VBA  
Author Message
paresh
External


Since: Apr 24, 2009
Posts: 5



PostPosted: Fri Apr 24, 2009 12:49 am    Post subject: Persist all recipients on Item forward event
Archived from groups: microsoft>public>outlook>program_vba (more info?)

Hi,

Could any one please let me know if it is possible to persist all recipients
(To, and CC list) while I forward some item(might be mail item).

Thanks,
Paresh
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Fri Apr 24, 2009 9:06 am    Post subject: Re: Persist all recipients on Item forward event [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What do you mean by persist them? Do you mean to keep them all as recipients
for the forward?

You would need to get the recipients of the original message and put them
into the forward item. Why I don't know, since all the original recipients
already received that message.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"paresh" <paresh.DeleteThis@discussions.microsoft.com> wrote in message
news:7C975E92-57D7-4296-8E86-6248A3D020A4@microsoft.com...
> Hi,
>
> Could any one please let me know if it is possible to persist all
> recipients
> (To, and CC list) while I forward some item(might be mail item).
>
> Thanks,
> Paresh
Back to top
paresh
External


Since: Apr 24, 2009
Posts: 5



PostPosted: Sat Apr 25, 2009 12:20 am    Post subject: Re: Persist all recipients on Item forward event [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>>You would need to get the recipients of the original message and put them
into the forward item.

Exactly Ken, I want to do this. When we forward the mail by default all
recipient won't be added automatically. I have to add it one by one manually.
Basically I want to make Reply All works like Forward which keep all
attachments and images of original message.

Thanks,
Paresh

"Ken Slovak - [MVP - Outlook]" wrote:

> What do you mean by persist them? Do you mean to keep them all as recipients
> for the forward?
>
> You would need to get the recipients of the original message and put them
> into the forward item. Why I don't know, since all the original recipients
> already received that message.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "paresh" <paresh.TakeThisOut@discussions.microsoft.com> wrote in message
> news:7C975E92-57D7-4296-8E86-6248A3D020A4@microsoft.com...
> > Hi,
> >
> > Could any one please let me know if it is possible to persist all
> > recipients
> > (To, and CC list) while I forward some item(might be mail item).
> >
> > Thanks,
> > Paresh
>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Mon Apr 27, 2009 9:52 am    Post subject: Re: Persist all recipients on Item forward event [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If the item is being forwarded using code just pick up the Recipients
collection of the original email and add them one by one to the newly
forwarded message.

If you are handling the Forward event on an item you would do the same
thing.

If you are just getting the item using NewInspector() then you would have to
find the original once you determined the item was a forward (about the only
way to do that is to use the Subject line and look for a forward prefix).
You do that by taking the ConversationTopic of the new forward item and
finding other items with that ConversationTopic value. Each new item in a
conversation has a ConversationIndex value one date/time struct longer than
the preceding item. That's how you find the item immediately preceding the
item of interest in the conversation.

After you get the original item you pull the recipients and add them one at
a time to the forward item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"paresh" <paresh RemoveThis @discussions.microsoft.com> wrote in message
news:2B38BB94-EE60-43F8-A228-0BB606B10559@microsoft.com...
>>>You would need to get the recipients of the original message and put them
> into the forward item.
>
> Exactly Ken, I want to do this. When we forward the mail by default all
> recipient won't be added automatically. I have to add it one by one
> manually.
> Basically I want to make Reply All works like Forward which keep all
> attachments and images of original message.
>
> Thanks,
> Paresh
Back to top
paresh
External


Since: Apr 24, 2009
Posts: 5



PostPosted: Mon Apr 27, 2009 9:52 am    Post subject: Re: Persist all recipients on Item forward event [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The forward event doen;t contains the information about recipients of
previous items. Could you please point me some example then it would be
great.

BTW, I have done using NewInspector selection method but I am not able to
get To and CC list separately because they are read only while using with
Redemption library. I posted it here:
http://www.microsoft.com/office/community/en-us/default.mspx?&lang=&cr...uid=&sl


Thanks,
Paresh

"Ken Slovak - [MVP - Outlook]" wrote:

> If the item is being forwarded using code just pick up the Recipients
> collection of the original email and add them one by one to the newly
> forwarded message.
>
> If you are handling the Forward event on an item you would do the same
> thing.
>
> If you are just getting the item using NewInspector() then you would have to
> find the original once you determined the item was a forward (about the only
> way to do that is to use the Subject line and look for a forward prefix).
> You do that by taking the ConversationTopic of the new forward item and
> finding other items with that ConversationTopic value. Each new item in a
> conversation has a ConversationIndex value one date/time struct longer than
> the preceding item. That's how you find the item immediately preceding the
> item of interest in the conversation.
>
> After you get the original item you pull the recipients and add them one at
> a time to the forward item.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "paresh" <paresh.TakeThisOut@discussions.microsoft.com> wrote in message
> news:2B38BB94-EE60-43F8-A228-0BB606B10559@microsoft.com...
> >>>You would need to get the recipients of the original message and put them
> > into the forward item.
> >
> > Exactly Ken, I want to do this. When we forward the mail by default all
> > recipient won't be added automatically. I have to add it one by one
> > manually.
> > Basically I want to make Reply All works like Forward which keep all
> > attachments and images of original message.
> >
> > Thanks,
> > Paresh
>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Tue Apr 28, 2009 9:26 am    Post subject: Re: Persist all recipients on Item forward event [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I told you to use the ConversationTopic property to locate all related items
and to check ConversationIndex to get the item order, which also usually
follows a date/time progression. You can google to see if you can find any
samples for that.

Dmitry explained about how to use those properties from Redemption, or you
can do what I said originally, get the Recipients and iterate them.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"paresh" <paresh.DeleteThis@discussions.microsoft.com> wrote in message
news:B6BCA029-3427-417C-BC87-A422F23AFE37@microsoft.com...
> The forward event doen;t contains the information about recipients of
> previous items. Could you please point me some example then it would be
> great.
>
> BTW, I have done using NewInspector selection method but I am not able to
> get To and CC list separately because they are read only while using with
> Redemption library. I posted it here:
> http://www.microsoft.com/office/community/en-us/default.mspx?&lang=&cr...uid=&sl
>
>
> Thanks,
> Paresh
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum