Using "Custom Action"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Does anyone know any websites on how to use the custom action within the
rules and alerts section of Outlook?

I am trying to create a rule whereby once an e-mail has been sent it is
moved into a specific folder. there isn't one in rules and alerts

all help would be greatly appreciated.

Thanks

David
 
Custom actions are .dll components built with Extended MAPI and C++ or
Delphi in such a way that they can be invoked by Rules Wizard. See
http://www.slipstick.com/addins/custom.htm for code samples and commercial
actions.

If you are using Outlook 2002 or later, you can create a rule with a "run a
script" action that invokes not a "script" but a public VBA subroutine with
a MailItem or MeetingItem argument, e.g.

Public Sub MyRuleScript(ThisMessage as MailItem)
MsgBox "The subject of this message is " & ThisMessage.Subject
' other code to work with ThisMessage
End Sub

See http://www.outlookcode.com/d/code/zaphtml.htm#ol2002 for an example.
 
Back
Top