Programmatically Forwarding Emails from Inbox

  • Thread starter Thread starter Amit Basu
  • Start date Start date
A

Amit Basu

Hi,

This could be a real simple question but I couldn't find the answer to
it. I am using Outlook 2000 on Windows 2000 OS with Exchange 5.5.

All I want to do is this: provide a button in the Outlook toolbar which
will forward all selected mail items to a specific id. I know how to do
everything except for finding the items that are selected.

Any ideas how to do this? I can iterate through all items in the current
folder. But I couldn't find any property or method in the Outlook object
model that gives me a way to determine whether an item in this
collection is Selected or not.

TIA.
 
Hi,

I found the Outlook object to do this. One has to access the Selection
collection of the Explorer object to get this done. Sorry to bother.

Thanks.
Amit.
 
Hi,

It might help if you told us WHY you want to do this. I
suspect you're not getting any answers because code of
this type is too likely to be abused.

-Andrew Cushen

=============================================
 
Thanks Sue. I posted my 2nd one before seeing your reply. I am done with
this.

Andrew, I have already got the answer. The reason is a simple mechanism
for handling spams and other junk mail.

Thanks

From: Amit Basu
Date Posted: 2/6/2004 8:23:00 AM



Hi,

This could be a real simple question but I couldn't find the answer to
it. I am using Outlook 2000 on Windows 2000 OS with Exchange 5.5.

All I want to do is this: provide a button in the Outlook toolbar which
will forward all selected mail items to a specific id. I know how to do
everything except for finding the items that are selected.

Any ideas how to do this? I can iterate through all items in the current
folder. But I couldn't find any property or method in the Outlook object
model that gives me a way to determine whether an item in this
collection is Selected or not.

TIA.




Re: Programmatically Forwarding Emails from Inbox
From: Sue Mosher [MVP]
Date Posted: 2/6/2004 10:12:00 AM



Application.ActiveExplorer.Selection
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Amit Basu said:
Hi,

This could be a real simple question but I couldn't find the answer to
it. I am using Outlook 2000 on Windows 2000 OS with Exchange 5.5.

All I want to do is this: provide a button in the Outlook toolbar which
will forward all selected mail items to a specific id. I know how to do
everything except for finding the items that are selected.

Any ideas how to do this? I can iterate through all items in the current
folder. But I couldn't find any property or method in the Outlook object
model that gives me a way to determine whether an item in this
collection is Selected or not.

TIA.




Re: Programmatically Forwarding Emails from Inbox
From: Amit Basu
Date Posted: 2/6/2004 10:36:00 AM



Hi,

I found the Outlook object to do this. One has to access the Selection
collection of the Explorer object to get this done. Sorry to bother.

Thanks.
Amit.





Programmatically Forwarding Emails from Inbox
From: Andrew Cushen
Date Posted: 2/6/2004 11:07:00 AM



Hi,

It might help if you told us WHY you want to do this. I
suspect you're not getting any answers because code of
this type is too likely to be abused.

-Andrew Cushen

=============================================
 
Back
Top