Accessing API from another machine.

This section contains scripts that hMailServer has contributed with. hMailServer 4 is needed to use these.
Post Reply
robcha
New user
New user
Posts: 3
Joined: 2008-06-03 18:16

Accessing API from another machine.

Post by robcha » 2008-06-03 18:20

I want to access the COM API from a different machine than where hmailserver is installed. By looking at the way the hMailserver Administrator connects to hMailServers, it leads me to believe that this is possible.

My instincts tell me that you would specify the hostname on the application.authenticate but alas there are no properties for hostname there. Am I missing something blatently or is this functionality not provided through the API.

Thanks,

Rob...

User avatar
SorenR
Senior user
Senior user
Posts: 6315
Joined: 2006-08-21 15:38
Location: Denmark

Re: Accessing API from another machine.

Post by SorenR » 2008-06-03 20:22

SørenR.

Woke is Marxism advancing through Maoist cultural revolution.

robcha
New user
New user
Posts: 3
Joined: 2008-06-03 18:16

Re: Accessing API from another machine.

Post by robcha » 2008-06-03 20:30

Let me clarify. I want to use the COM API in a script running on a remote machine from the hMailServer machine.

Thanks,

Rob...

User avatar
martin
Developer
Developer
Posts: 6846
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: Accessing API from another machine.

Post by martin » 2008-06-03 20:38

You create an instance of the hMailServer.Application in some way. It's when you do this you need to specify on which host the object is going to be created. How to do this depends on what development language you're using. I suggest you check the documentation for the COM object creation function you're using.

robcha
New user
New user
Posts: 3
Joined: 2008-06-03 18:16

Re: Accessing API from another machine.

Post by robcha » 2008-06-03 20:47

OK that is the missing piece. I need to specify the hostname in the CreateObject statement

Code: Select all

Set objApp = CreateObject("hMailServer.Application", "remotehost")
Thanks a bunch!!!!

Rob...

Post Reply