Greetings, all. I have a bit of a conundrum to contend with and I was hoping someone
out there might be able to lend a hand. Here's the situation: I'm attempting to add
new IMail domains and users via ASP and the Windows Scripting Host. Here's the code
I'm using to add a domain:
Set shell = CreateObject("WScript.Shell")
commandline = "C:\Imail\AddDomain.exe -h newdomain.com -i VIRTUAL -t newdomain.com -a
"""mail.newdomain.com newdomain.com""" -u IM -x 5242880 -r 10"
result = shell.Run(commandline)
Here's what happens: the script creates a directory for newdomain.com in the IMail
directory on the server. It does NOT, however, actually create the domain in the
IMail app, i.e., when I actually open the IMail app, newdomain.com doesn't show up in
the list. At first I thought I was using a bad command string. But if I run the
script right from the command line on the server, it does everything just as it
should, which rules out a bad command string. The ASP pages, by the way, reside on
the same server as IMail, but on a different drive.
Anyone have any idea what the problem is? Any help would be greatly appreciated. And
please let me know if my post didn't make any sense or if I've omitted any important
details.
Thanks,
Ian Anderson
________________________________________________________________
Sent via the WebMail system at commandline.net
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/