PC Review


Reply
Thread Tools Rate Thread

how do I get this script to run?

 
 
voip1234@mytrashmail.com
Guest
Posts: n/a
 
      22nd Aug 2005
At slipstick I found this script to automatically BCC to a specific
address every
single email I send.
I pressedn Alt-F11 and then pasted the code in the ThisOutlookSession
then I changed the line
strBcc = "(E-Mail Removed)"
to my email address.
Finally I pressed the save button on the toolbar and quit VB editor.
It worked once...then I shutdown the machine for the night.
Today I reboot and even though the code is still there, it does
not send the BCC. I tried to put a msgbox in the code to see
if it is even running, but it looks like its not.
Any idea what I should do? or how i can get this to run?
thanks,
-guillermo
PS.- I use Outlook 2003 with all available updates on XP also with all
available updates.

PS2.-the script is:
-----------------------------------
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As
Boolean)
Dim objRecip As Recipient
Dim strMsg As String
Dim res As Integer
Dim strBcc as String

' #### USER OPTIONS ####
' address for Bcc -- must be SMTP address or resolvable
' to a name in the address book
strBcc = "(E-Mail Removed)"

On Error Resume Next
Set objRecip = Item.Recipients.Add(strBcc)
' handle case of user canceling Outlook security dialog
If Err = 287 Then
strMsg = "Could not add a Bcc recipient " & _
"because the user said No to the security prompt." & _
" Do you want still to send the message?"
res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _
"Security Prompt Cancelled")
If res = vbNo Then
Cancel = True
Else
objRecip.Delete
End If
Err.Clear
Else
objRecip.Type = olBCC
objRecip.Resolve
If Not objRecip.Resolved Then
strMsg = "Could not resolve the Bcc recipient. " & _
"Do you want still to send the message?"
res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _
"Could Not Resolve Bcc Recipient")
If res = vbNo Then
Cancel = True
End If
End If
End If

Set objRecip = Nothing
End Sub

 
Reply With Quote
 
 
 
 
voip1234@mytrashmail.com
Guest
Posts: n/a
 
      22nd Aug 2005
by the way...i have already tried the macro security options...and the
IE security options too....still no luck.
I found a commercial plugin that does this same thing and works, but
its 25 bucks...i need to try to get this working before I resort to
paying

 
Reply With Quote
 
voip1234@mytrashmail.com
Guest
Posts: n/a
 
      23rd Aug 2005
ok, out of the blue outlook started asking me if I wanted to enable
macros because "thisoulooksession" has a macro....i said yes and it
started working again...
can somebody explain what defines whether the macro will run or not?
I havent changed anything since this afternoon when this did not work.
thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<script>window.opener.location.href='MyPage.aspx';</script> Chetana Microsoft Dot NET 0 14th Feb 2008 11:23 AM
How would you write a script to add and apply a group policy in Active Directory? Script could be VBscript arpitaashokadessai@gmail.com Microsoft Windows 2000 Active Directory 1 14th Feb 2007 09:07 PM
BUG: Script blocking strips script parameters during script authorization Jonathan K. Shay Spyware Announcements 3 2nd May 2005 06:18 PM
Problem in executing a script on the server side ! Script found but nothing executed ! Cédric Rossé Microsoft ASP .NET 1 9th Nov 2004 09:43 AM
Logon script running a Kixtart script doesn't map drives when logging on from XP AcKBaR[KAC] Microsoft Windows 2000 Networking 0 25th Feb 2004 05:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:22 AM.