Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder 
Author Message
 Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder

Hi,
I used the following code to send a Blind carbon copy mail message
programmatically, but I don't wat the mail address in  the BCC field to
apear after the message has been sent and move to the sent items folder.Can
anyone post some sample code???

My code so far,  Thanks in advanced!

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

    Dim objMe As Recipient


    objMe.Type = olBCC

    objMe.Resolve

    Set objMe = Nothing

End Sub

Quote:
>>Dmitry Streblechenko (MVP)  Wrote!!
>> http://www.*-*-*.com/
>>You can't: it is a calculated property. You need to explicitly delete each
>>BCC
>>recipient after the message has been sent. Trap MAPIFolder.Items.ItemAdd
>>event
>>on the Sent Items folder and modify the message.
>>Thomas Quester                     Wrote!!
>>www.outlookfolders.com
>>Perhaps you must delete the PR_DISPLAY_BCC field before or after sending



Tue, 03 Aug 2004 01:41:05 GMT  
 Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder
Take a look at http://www.slipstick.com/dev/code/zaphtml.htm for an example of how to monitor a specific folder for new items. You'd be working with Sent Items, instead of Inbox, but the basic structure is the same.

--
Sue Mosher, Outlook MVP
   Outlook and Exchange Solutions
   at http://www.slipstick.com

Quote:

> Hi,
> I used the following code to send a Blind carbon copy mail message
> programmatically, but I don't wat the mail address in  the BCC field to
> apear after the message has been sent and move to the sent items folder.Can
> anyone post some sample code???

> My code so far,  Thanks in advanced!

> Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

>     Dim objMe As Recipient


>     objMe.Type = olBCC

>     objMe.Resolve

>     Set objMe = Nothing

> End Sub

> >>Dmitry Streblechenko (MVP)  Wrote!!
> >>http://www.dimastr.com/
> >>You can't: it is a calculated property. You need to explicitly delete each
> >>BCC
> >>recipient after the message has been sent. Trap MAPIFolder.Items.ItemAdd
> >>event
> >>on the Sent Items folder and modify the message.

> >>Thomas Quester                     Wrote!!
> >>www.outlookfolders.com
> >>Perhaps you must delete the PR_DISPLAY_BCC field before or after sending



Tue, 03 Aug 2004 06:19:52 GMT  
 Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder
thanks again!!!!!!!!



Take a look at http://www.slipstick.com/dev/code/zaphtml.htm for an example
of how to monitor a specific folder for new items. You'd be working with
Sent Items, instead of Inbox, but the basic structure is the same.

--
Sue Mosher, Outlook MVP
   Outlook and Exchange Solutions
   at http://www.slipstick.com


Quote:
> Hi,
> I used the following code to send a Blind carbon copy mail message
> programmatically, but I don't wat the mail address in  the BCC field to
> apear after the message has been sent and move to the sent items
folder.Can
> anyone post some sample code???

> My code so far,  Thanks in advanced!

> Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

>     Dim objMe As Recipient


>     objMe.Type = olBCC

>     objMe.Resolve

>     Set objMe = Nothing

> End Sub

> >>Dmitry Streblechenko (MVP)  Wrote!!
> >>http://www.dimastr.com/
> >>You can't: it is a calculated property. You need to explicitly delete
each
> >>BCC
> >>recipient after the message has been sent. Trap MAPIFolder.Items.ItemAdd
> >>event
> >>on the Sent Items folder and modify the message.

> >>Thomas Quester                     Wrote!!
> >>www.outlookfolders.com
> >>Perhaps you must delete the PR_DISPLAY_BCC field before or after sending



Wed, 11 Aug 2004 02:33:13 GMT  
 Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder

Quote:

> Hi,
> I used the following code to send a Blind carbon copy mail message
> programmatically, but I don't wat the mail address in  the BCC field to
> apear after the message has been sent and move to the sent items folder.Can
> anyone post some sample code???

> My code so far,  Thanks in advanced!

> Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

>     Dim objMe As Recipient


>     objMe.Type = olBCC

>     objMe.Resolve

>     Set objMe = Nothing

> End Sub

> >>Dmitry Streblechenko (MVP)  Wrote!!
> >>http://www.dimastr.com/
> >>You can't: it is a calculated property. You need to explicitly delete each
> >>BCC
> >>recipient after the message has been sent. Trap MAPIFolder.Items.ItemAdd
> >>event
> >>on the Sent Items folder and modify the message.

> >>Thomas Quester                     Wrote!!
> >>www.outlookfolders.com
> >>Perhaps you must delete the PR_DISPLAY_BCC field before or after sending

Why do you not want to see the BCC. Do you use it legally ??? or are
you  going to install this on your girlfriends computer :-)
BTW i have the same question.


Sat, 14 Aug 2004 15:54:02 GMT  
 Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder
Ha HA ha, I just wanted to prove a friend wrong, she said it could not be
done in the client machine, that I needed to buy an expensive mail server
like exchange 2000, thanks to all for your help!!!

:-)



Quote:
> > Hi,
> > I used the following code to send a Blind carbon copy mail message
> > programmatically, but I don't wat the mail address in  the BCC field to
> > apear after the message has been sent and move to the sent items
folder.Can
> > anyone post some sample code???

> > My code so far,  Thanks in advanced!

> > Private Sub Application_ItemSend(ByVal Item As Object, Cancel As
Boolean)

> >     Dim objMe As Recipient


> >     objMe.Type = olBCC

> >     objMe.Resolve

> >     Set objMe = Nothing

> > End Sub

> > >>Dmitry Streblechenko (MVP)  Wrote!!
> > >>http://www.dimastr.com/
> > >>You can't: it is a calculated property. You need to explicitly delete
each
> > >>BCC
> > >>recipient after the message has been sent. Trap

MAPIFolder.Items.ItemAdd

- Show quoted text -

Quote:
> > >>event
> > >>on the Sent Items folder and modify the message.

> > >>Thomas Quester                     Wrote!!
> > >>www.outlookfolders.com
> > >>Perhaps you must delete the PR_DISPLAY_BCC field before or after
sending

> Why do you not want to see the BCC. Do you use it legally ??? or are
> you  going to install this on your girlfriends computer :-)
> BTW i have the same question.



Mon, 16 Aug 2004 08:27:17 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Programmatically delete an item from the Sent Items Folder

2. Removal of attachments on email items in Sent items folder

3. How to copy an item to another folder using ItemAdd

4. TreeView - HowTo step item by item? /crosspost/

5. Detecting an item move to Deleted Items folder

6. Explorer-like interface to Outlook items with mixed type items in a folder

7. Trapping a Sent Item

8. Trying to trap a mail item send event

9. Programmatically delete an item from the Sent items

10. How to delete selective items from Sent Items from PF Script

11. Meeting item when sent as item gives problems

12. interating through the "Sent Items" Folder

 

 
Powered by phpBB® Forum Software