Hello,

  I'm developing a VB application to administrate Xmail server (create domains, 
users...) and I'm using eyeXmail to send commands to the server. Is it possible to 
send more than one command to Xmail server with the same ctrlclnt object?

  In my tests I have had to create and destroy a ctrlclnt object each time I want to 
send a command to the server because if I try to send two commands, first is executed 
but second causes an error.

  This is part of my code:

  Set xmail = New eyeXMail.ctrlclnt
  xmail.ServerAddress = "127.0.0.1"
  xmail.ServerPort = 6017
  xmail.ServerUser = "root"
  xmail.ServerPassword = "password"
  xmail.UseMD5 = True
  Call xmail.ExecuteCommand("domainlist", "", "", 1)
[... code ...]
  Call xmail.ExecuteCommand("userlist", CStr(domain), "", 1)
[... code ...]
  Set xmail = nothing

  The second call to xmail.ExecuteCommand causes the error:
  Error '-2147352567 (80020009)'
  Could not connect: [ERROR] Bad CTRL command syntax
  [ERROR] Invalid response during login.
  [ERROR] -00108 Bad CTRL command syntax

  But If I create and destroy the eyeXMail.ctrlclnt object for each call it works 
fine...

  Can anybody help me?

  Thanks in advantage. Best regards,

  Javier Navarro


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to