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

2003 Rules



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 6th 08, 10:04 AM posted to microsoft.public.outlook.program_vba
sean00
external usenet poster
 
Posts: 4
Default 2003 Rules

Hello,
I have a rule that no longer works. I am on a client computer off an
exchange server. I have a rule that searches the subject line for a word and
runs a script I created. This worked fine yesterday and now the rule no
longer works. The script never kicks off. Other rules work fine.

Any suggestions would be great.
Ads
  #2  
Old March 6th 08, 10:08 AM posted to microsoft.public.outlook.program_vba
sean00
external usenet poster
 
Posts: 4
Default 2003 Rules

I wanted to also mention that I have deleted the rule and code, restarted the
computer and then created the rule and put the vb code back into outlook.
Sent myself a test message and the rule still does not work.

Thanks!

Sean
  #3  
Old March 7th 08, 06:40 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 2003 Rules



What happens if you use only this:

Public Sub YourScript(Mail as Outlook.MailItem)
MsgBox "hallo"
End Sub

Does your rule call that?

--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Thu, 6 Mar 2008 01:04:02 -0800 schrieb sean00:

Hello,
I have a rule that no longer works. I am on a client computer off an
exchange server. I have a rule that searches the subject line for a word

and
runs a script I created. This worked fine yesterday and now the rule no
longer works. The script never kicks off. Other rules work fine.

Any suggestions would be great.

  #4  
Old March 7th 08, 08:14 AM posted to microsoft.public.outlook.program_vba
sean00
external usenet poster
 
Posts: 4
Default 2003 Rules

Thanks for the reply,

I actually tried something simliar to that. I put a breakpoint at the
beginning but the script never kicks off. I have tested with other simple
generic rules ie moving emails to folders like inbox and they work. The rules
that say "Run script", do not.


Any more suggestions would be appreciated.
  #5  
Old March 7th 08, 08:18 AM posted to microsoft.public.outlook.program_vba
sean00
external usenet poster
 
Posts: 4
Default 2003 Rules

This might help anyone that is helping.

The problem started when I entered the code below into my existing code.


Const cdoSendUsingPickup = 1 'Send message using the local SMTP service
pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over
the network).

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = """Sean"" "
objMessage.To = "something@thencom"
objMessage.TextBody = "New Case created. Case # " + caseName

'==This section provides the configuration information for the remote SMTP
server.

objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"RTPEXMV01.hq.netapp.com"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "seanr"

'Your password on the SMTP server
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"

'Server port (typically 25)
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish a
connection to the SMTP server)
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send

When I tested and noticed the script was not kicking off, I removed the
above and recompiled but still with no luck. Maybe the code below changed a
setting ?

Thanks,
  #6  
Old March 11th 08, 06:45 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 2003 Rules



Did you look if VBA is deactivated? You can see that via
Help/Info/Deactivated Items.

--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Thu, 6 Mar 2008 23:18:01 -0800 schrieb sean00:

This might help anyone that is helping.

The problem started when I entered the code below into my existing code.


Const cdoSendUsingPickup = 1 'Send message using the local SMTP service
pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over
the network).

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = """Sean"" "
objMessage.To = "something@thencom"
objMessage.TextBody = "New Case created. Case # " + caseName

'==This section provides the configuration information for the remote SMTP
server.

objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"RTPEXMV01.hq.netapp.com"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") =

cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "seanr"

'Your password on the SMTP server
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") =

"password"

'Server port (typically 25)
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish

a
connection to the SMTP server)
objMessage.Configuration.Fields.item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") =

60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send

When I tested and noticed the script was not kicking off, I removed the
above and recompiled but still with no luck. Maybe the code below changed

a
setting ?

Thanks,

 




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
Outlook 2003 rules problem on SBS 2003 server [email protected] Outlook - General Queries 0 February 21st 08 08:30 PM
outlook 2003/ Exchange 2003 rules kacoquico Outlook - General Queries 4 April 20th 07 08:42 PM
Outlook 2003 SP2 Rules - connected to Exchange 2003 SP2 David Outlook - General Queries 2 January 23rd 07 02:37 PM
rules and alerts limits with outlook 2003 & Exchange 2003 Jeje Outlook - General Queries 2 June 9th 06 02:44 AM
Exchange 2003 + Outlook 2003: rules not running David Outlook - General Queries 3 February 22nd 06 08:48 AM


All times are GMT +1. The time now is 05:47 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.