Bitspan provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures.
For more information about the support options that are available and about how to contact Bitspan, visit the following Bitspan Web site:
You can use either "early" or "late" binding to start an Automation session. Late binding uses either the GetObject or CreateObject function to initialize Bitspan Spamityä Agent. For example, the following code sets an object to the Bitspan Spamityä Agent program, which is the highest level object in the Bitspan Spamityä Agent object model. All Automation code must first define an Bitspan Spamityä Agent object in order to access any of the other Bitspan Spamityä Agent objects below that.
To use Bitspan’s Spamity email processor, you first need to reference the available Bitspan Spamityä object library in a Visual Basic DLL. To do this, follow these steps:
1. In the Visual Basic Editor, create a Visual Basic DLL and reference the Bitspan Spamity.dll.
2.
Define
functions that are to be called via the Visual Basic DLL
In your ASP page, create an instance of the Visual Basic DLL that references Spamity.dll Functions. In our example, the Visual Basic DLL is called SpamityVB.dll and the class that holds all the functions is called clsMain.
Dim objSpamity
Set objSpamity = Server.CreateObject("SpamityVB.clsMain")
Once you object library, you can use the following syntax to access functions.
objSpamity.IsSpamByMime(MIME)
Once you are done, simple destroy the object instance that you created.
Set objSpamity = Nothing
For more information about creating solutions with Bitspan Spamityä, please see the following articles in the Bitspan Knowledge Base:
100002 How to Automated Bitspan Spamity™ from
Visual C++
100003 How to Automated Bitspan Spamity™ from
SOAP/HTTP
|
Last Reviewed: |
4/04/2004 (1.0) |
|
Keywords: |
kbdtacode kbhowto kbProgramming kbusage KB100002 |