Many customers are confused about why Chilkat has both an "Email ActiveX" and a "WebMail ActiveX", especially because both APIs are identical. The only difference is in the names of the objects.
The reason is that many years ago, the ATL/COM infrastructure generated byVisual Studio’s ATL Object Wizard had some problems. If you chose "Full Control" certain problems arised when trying to use it in an ASP page. Therefore, it was necessary to create the component as an "ActiveX Server Component" when targeted for ASP. Thus two components existed — one for server-side ASP, and one for applications, both with identical objects and methods/properties.
The Visual Studio problem has long since disappeared, but two components remain. The ASP WebMail component will likely be phased out. A single "Chilkat Email" license applies to both components.
Here’s how the ASP WebMail objects are created in ASP:
set MyInstance = Server.CreateObject("ChilkatWebMail2.WebBundle2")
set MyInstance = Server.CreateObject("ChilkatWebMail2.WebEmail2")
set MyInstance = Server.CreateObject("ChilkatWebMail2.WebMailMan2")
You may also use the Chilkat Email ActiveX in ASP. Here’s how those objects are created:
set MyInstance = Server.CreateObject("Chilkat.Email2")
set MyInstance = Server.CreateObject("Chilkat.EmailBundle2")
set MyInstance = Server.CreateObject("Chilkat.MailMan2")
In a VB6 application, the objects are dynamically created like this:
WebMail:
Dim webMailman as new WebMailMan2
Dim webEmail as new WebEmail2
Dim webBundle as new WebBundle2
Chilkat Email:
Dim mailman as new ChilkatMailMan2
Dim email as new ChilkatEmail2
Dim bundle as new ChilkatEmailBundle2
The IMAP ActiveX shares the email object from both Chilkat Email and Chilkat WebMail. Because there are two email objects, and IMAP method that involves an email object is duplicated — one for WebMail and one for Chilkat Email. For example:
FetchSingleWebHeader(msgId As Long, bUID As Long) As WebEmail2
FetchSingleHeader(msgId As Long, bUID As Long) As ChilkatEmail2
When the WebMail component is eventually deprecated, the IMAP ActiveX interface will be simplified by removing the WebMail duplicate methods.
Chilkat recommends NOT USING WebMail. It is better to use Chilkat Email for both forms applications and ASP server-side apps.