I have several users (hundreds to be a *bit* more accurate)
I would like to add a delivery event for all the mail boxes. rather than going through each via the Mail Enable Console, I was wondering if there were a programattic way of doing things.
Please help!
Setting delivery event for mailbox programattically
Setting delivery event for mailbox programattically
Did you ever get a response about this? I'm trying to do the exact same thing. Not only on existing accounts but to set the value on new mailboxes when they are created.
Any ideas?
Any ideas?
-
- Posts: 302
- Joined: Tue Jul 19, 2005 1:12 pm
- Location: 404
via automation, not API
I don't think there is currently any API property for mailbox delivery events (I could be wrong, though, as the MailEnable API guide is quite outdated) so the process actually involves editing certain config files.You can create a script to automate it all, but it will have to do it the hard way (without much API help, that is)...
-
- Site Admin
- Posts: 4441
- Joined: Tue Jun 25, 2002 3:03 am
- Location: Melbourne, Victoria Australia
You can use the system option provider to do this, specifically, the MEAOSO object or the MEWebmail.Options class. The current api guide does not document this however (or at least the one on the web site)
Example:
set oFeatures = CreateObject("MEWebmail.Options")
ChangeResult = oFeatures.SetSystemOption(2,"YourPostoffice" & "/" & "YourMailbox","OptionName","OptionValue")
You can inspect the mailboxname.sys file under the config dir to get the names of the options. ie: configure one mbx how you would like and examine the values.
Example:
set oFeatures = CreateObject("MEWebmail.Options")
ChangeResult = oFeatures.SetSystemOption(2,"YourPostoffice" & "/" & "YourMailbox","OptionName","OptionValue")
You can inspect the mailboxname.sys file under the config dir to get the names of the options. ie: configure one mbx how you would like and examine the values.
Regards, Andrew
Setting delivery event for mailbox programattically
Thank you! Thank you! Thank you!
This worked really well! I am now able to enable a delivery event and set the path of the event dynamically when the account is created.
Works great, too!
Any chance the API documentation is going to be updated any time soon?
This worked really well! I am now able to enable a delivery event and set the path of the event dynamically when the account is created.
Works great, too!
Any chance the API documentation is going to be updated any time soon?
-
- Posts: 2
- Joined: Thu May 19, 2016 2:22 am
Re: Setting delivery event for mailbox programattically
Quite a few years later, and I'm currently looking for something like this. Any update on it?
-
- Posts: 2
- Joined: Thu May 19, 2016 2:22 am
Re: Setting delivery event for mailbox programattically
Several years later and I'm still hoping for this option. Any update? The API Docs have proven to be rather unreliable.