Hi
  I never used com before.... can someone help me translate this to coldfusion:
It will create an email account on the mail server programmatically!

I tried many variations of the cfobject tag to create the object but I get

Could not find the ColdFusion Component or Interface hMailServer.

Does it have to be registered someplace first? Or do I need the path 
to the file one the server?
thanks




   Dim obApp
    Set obApp = CreateObject("hMailServer.Application")

    ' Authenticate. Without doing this, we won't have permission
    ' to change any server settings or add any objects to the
    ' installation.
    Call obApp.Authenticate("Administrator", "your-main-hmailserver-password")

    ' Locate the domain we want to add the account to
    Dim obDomain
    Set obDomain = obApp.Domains.ItemByName("example.com")

    Dim obAccount
    Set obAccount = obDomain.Accounts.Add

    ' Set the account properties
    obAccount.Address = "acco...@example.com"
    obAccount.Password = "secret"
    obAccount.Active = True
    obAccount.MaxSize = 100 ' Allow max 100 megabytes

    obAccount.Save





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348556
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to