Programmatically Forwarding Emails from Inbox

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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
A

Amit Basu

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.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
A

Andrew Cushen

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

=============================================
 
A

Amit Basu

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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!




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.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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

=============================================
-----Original Message-----
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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 

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