Using "Custom Action"

D

David Pfeffer

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
 
S

Sue Mosher [MVP-Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top