A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redirect email from Sent folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 28th 06, 09:57 PM posted to microsoft.public.outlook.program_vba
Christine
external usenet poster
 
Posts: 63
Default Redirect email from Sent folder

I've found information using Help in Outlook to redirect email, however what
I've come across so far is that a Mail Server is needed. Is this true? I want
to be able to redirect mail from the Sent folder as I am already keeping a
copy of the Incoming emails on my ISP server. The reason I am doing this is
because I am having difficulty with my teenage son. Although I am now able to
find out things after they've taken place through only the incoming emails, I
want the advantage of knowing beforehand. Is there VB script that can be
written to help me with this?

Thank you in advance for your help.
Christine
  #2  
Old April 30th 06, 09:59 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Redirect email from Sent folder

Am Fri, 28 Apr 2006 12:57:01 -0700 schrieb Christine:

Christine, I´m not sure what you´re asking for. Do you want a copy of each
sent mail to be sent to another address, too?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


I've found information using Help in Outlook to redirect email, however

what
I've come across so far is that a Mail Server is needed. Is this true? I

want
to be able to redirect mail from the Sent folder as I am already keeping a
copy of the Incoming emails on my ISP server. The reason I am doing this

is
because I am having difficulty with my teenage son. Although I am now able

to
find out things after they've taken place through only the incoming

emails, I
want the advantage of knowing beforehand. Is there VB script that can be
written to help me with this?

Thank you in advance for your help.
Christine

  #3  
Old May 1st 06, 04:07 PM posted to microsoft.public.outlook.program_vba
Christine
external usenet poster
 
Posts: 63
Default Redirect email from Sent folder

Hi Michael,

Yes, I want any sent emails forwarded to another email account, however
because of the nature of my problem I don't want it to be CC'd or showing as
sent to another email account.

I appreciate any help with this.
Christine

"Michael Bauer" wrote:

Am Fri, 28 Apr 2006 12:57:01 -0700 schrieb Christine:

Christine, I´m not sure what you´re asking for. Do you want a copy of each
sent mail to be sent to another address, too?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


I've found information using Help in Outlook to redirect email, however

what
I've come across so far is that a Mail Server is needed. Is this true? I

want
to be able to redirect mail from the Sent folder as I am already keeping a
copy of the Incoming emails on my ISP server. The reason I am doing this

is
because I am having difficulty with my teenage son. Although I am now able

to
find out things after they've taken place through only the incoming

emails, I
want the advantage of knowing beforehand. Is there VB script that can be
written to help me with this?

Thank you in advance for your help.
Christine


  #4  
Old May 2nd 06, 07:22 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Redirect email from Sent folder

Am Mon, 1 May 2006 07:07:02 -0700 schrieb Christine:

You can´t be sure that the process is really hidden. The Outbox could show
all addresses, also the CC or BCC. And the code is visible in the VBA
Editor.


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Hi Michael,

Yes, I want any sent emails forwarded to another email account, however
because of the nature of my problem I don't want it to be CC'd or showing

as
sent to another email account.

I appreciate any help with this.
Christine

"Michael Bauer" wrote:

Am Fri, 28 Apr 2006 12:57:01 -0700 schrieb Christine:

Christine, I´m not sure what you´re asking for. Do you want a copy of

each
sent mail to be sent to another address, too?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


I've found information using Help in Outlook to redirect email, however

what
I've come across so far is that a Mail Server is needed. Is this true? I

want
to be able to redirect mail from the Sent folder as I am already keeping

a
copy of the Incoming emails on my ISP server. The reason I am doing this

is
because I am having difficulty with my teenage son. Although I am now

able
to
find out things after they've taken place through only the incoming

emails, I
want the advantage of knowing beforehand. Is there VB script that can be
written to help me with this?

Thank you in advance for your help.
Christine


  #5  
Old May 2nd 06, 10:42 PM posted to microsoft.public.outlook.program_vba
Christine
external usenet poster
 
Posts: 63
Default Redirect email from Sent folder

Yes Michael I understand that the VBA editor would show the script, however I
do know that my teenager wouldn't know to look there. If I used a "rule" to
Bcc, I know the rule would show, however it's my understanding that if I Bcc
it wouldn't show to the people that the email was sent.... although I don't
know if there would be a second sent email showing to my account for the same
message. This is why I was hoping there was VB script to handle this.

Thanks,
Christine

"Michael Bauer" wrote:

Am Mon, 1 May 2006 07:07:02 -0700 schrieb Christine:

You can´t be sure that the process is really hidden. The Outbox could show
all addresses, also the CC or BCC. And the code is visible in the VBA
Editor.


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Hi Michael,

Yes, I want any sent emails forwarded to another email account, however
because of the nature of my problem I don't want it to be CC'd or showing

as
sent to another email account.

I appreciate any help with this.
Christine

"Michael Bauer" wrote:

Am Fri, 28 Apr 2006 12:57:01 -0700 schrieb Christine:

Christine, I´m not sure what you´re asking for. Do you want a copy of

each
sent mail to be sent to another address, too?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


I've found information using Help in Outlook to redirect email, however
what
I've come across so far is that a Mail Server is needed. Is this true? I
want
to be able to redirect mail from the Sent folder as I am already keeping

a
copy of the Incoming emails on my ISP server. The reason I am doing this
is
because I am having difficulty with my teenage son. Although I am now

able
to
find out things after they've taken place through only the incoming
emails, I
want the advantage of knowing beforehand. Is there VB script that can be
written to help me with this?

Thank you in advance for your help.
Christine


  #6  
Old May 3rd 06, 07:01 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Redirect email from Sent folder

Am Tue, 2 May 2006 13:42:05 -0700 schrieb Christine:

There´s no second message and the recipients wouldn´t know, that´s correct.
But if you open the Outbox there´re several fields displayed, e.g. To and
Subject. You can add also CC and/or BCC, so the additional recipients would
be visible to your teenager.

The sample below does it in OL 2003. In OL XP you would be faced with
security prompts. You need to edit the address in the last method´s constant
BCC_ADR, that is the one the BCC goes to.

Your next problem is the security setting. For running VBA without user
interaction you need to set the security to low. In Outlook, not VBA IDE,
click Tools/Macros/Security. The alternative would be to create a
certificate for the VBA project. Please Google for "selfcert.exe" to find an
example.

Private WithEvents Items As Outlook.Items

Private Sub Application_Startup()
Set Items = Application.Session.GetDefaultFolder(olFolderSentM ail).Items
End Sub

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
On Error Resume Next
If TypeOf Item Is Outlook.MailItem Then
HiddenCopy Item, True
End If
End Sub

Private Sub Items_ItemAdd(ByVal Item As Object)
On Error Resume Next
HiddenCopy Item, False
End Sub

Private Sub HiddenCopy(ByVal Item As Outlook.MailItem, _
ByVal AddRecipient As Boolean _
)
On Error Resume Next
Dim r As Outlook.Recipient
Dim i As Long
Const BCC_ADR As String = "

If AddRecipient Then
' Add the recipient
Set r = Item.Recipients.Add(BCC_ADR)
Debug.Print r.Index
r.Type = olBCC
r.Resolve
Else
' Remove it
For Each r In Item.Recipients
If InStr(1, r.Address, BCC_ADR, vbTextCompare) Then
If r.Type = olBCC Then
r.Delete
Item.Save
Exit For
End If
End If
Next
End If
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Yes Michael I understand that the VBA editor would show the script,

however I
do know that my teenager wouldn't know to look there. If I used a "rule"

to
Bcc, I know the rule would show, however it's my understanding that if I

Bcc
it wouldn't show to the people that the email was sent.... although I

don't
know if there would be a second sent email showing to my account for the

same
message. This is why I was hoping there was VB script to handle this.

Thanks,
Christine

"Michael Bauer" wrote:

Am Mon, 1 May 2006 07:07:02 -0700 schrieb Christine:

You can´t be sure that the process is really hidden. The Outbox could

show
all addresses, also the CC or BCC. And the code is visible in the VBA
Editor.


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Hi Michael,

Yes, I want any sent emails forwarded to another email account, however
because of the nature of my problem I don't want it to be CC'd or

showing
as
sent to another email account.

I appreciate any help with this.
Christine

"Michael Bauer" wrote:

Am Fri, 28 Apr 2006 12:57:01 -0700 schrieb Christine:

Christine, I´m not sure what you´re asking for. Do you want a copy of

each
sent mail to be sent to another address, too?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


I've found information using Help in Outlook to redirect email,

however
what
I've come across so far is that a Mail Server is needed. Is this true?

I
want
to be able to redirect mail from the Sent folder as I am already

keeping
a
copy of the Incoming emails on my ISP server. The reason I am doing

this
is
because I am having difficulty with my teenage son. Although I am now

able
to
find out things after they've taken place through only the incoming
emails, I
want the advantage of knowing beforehand. Is there VB script that can

be
written to help me with this?

Thank you in advance for your help.
Christine


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup email account as resource in exchange - redirect stuffing up [email protected] Outlook - Calandaring 2 March 31st 06 02:05 AM
How can I send an email to all email senders in a folder without K Outlook - Using Contacts 1 March 24th 06 02:43 AM
Redirect mail to another computor on LAN Birilac Outlook Express 6 February 20th 06 04:28 PM
Filtering Rule in Outlook2003 : how to redirect acknowledgements into ad hoc directory (sorry for the previous msg in html) [Ben] Outlook - General Queries 1 January 12th 06 12:03 PM
Filtering Rule in Outlook 2003 : how to redirect acknowledgements into ad hoc directory ? [Ben] Outlook - General Queries 1 January 12th 06 12:00 PM


All times are GMT +1. The time now is 11:19 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-2025 Outlook Banter.
The comments are property of their posters.