0 votes

I am using a Send An Email on create mailbox function. Sometimes it works and sometimes not. The issue seems to be that Adaxes fires the rule too quickly before the Exchange mailbox has been fully created.

How do I put a pause into a rule? Like 30 seconds?

by (2.9k points)

1 Answer

0 votes
by (215k points)


Are you using Exchnage 2003?

We suggest that you send your email in a PowerShell script. This script allows you to 'pause' the operation:

  1. Add the Run a program or PowerShell script action to your Business Rule.

  2. In the Add Action dialog, enable the Execute asynchronously option.

  3. Type the following PowerShell script:

     Start-Sleep -s 30 # waiting 30 seconds
     $toAddress = "%mail%"
     $subject = "Welcome, %username%" # TODO: modify me
     $bodyText = "Dear %name%, ..." # TODO: modify me
     $bodyHtml = "Dear <b>%name%</b>, ..." # TODO: modify me
     $Context.SendMail($toAddress, $subject, $bodyText, $bodyHtml)

We use Exchange 2010


Did the script correct the issue?

Related questions

0 votes
1 answer

Hello, I'm trying to setup a business rule that will send an email to the user when they are added to a group. Under the User Object I don't have an option to Launch ... to get the new group member's email address so I can send a notification to it? Thanks!

asked Dec 1, 2015 by drew.tittle (4.5k points)
0 votes
0 answers

Hello, I want to automate the creation of a contact based on an existing AD Users. For example, the code in my custom command contains something like: new-mailcontact - ... a parameter after he run the Custom Command from the Web interface? Thanks in advance.

asked Apr 20, 2016 by tentaal (5.6k points)
0 votes
1 answer

Can I configure Adaxes service to send emails to HR staff after user creation and/or password change? I need this email to contain User Full Name (%username%) and password (is there a reference for this?)

asked Aug 23, 2011 by jmirks (1.3k points)
0 votes
1 answer

Hello, we have a forest with two trees that hold one domain each. There is a default tree-root trust (transitive, two-way) between the top domains. Since both trees are ... to also use "Everywhere" in the Look-In box? Thank you for your suggestions! HarryNew

asked May 21, 2019 by HarryNew (1.2k points)
0 votes
1 answer

Using the built in 'Deprovision' Custom Command, I would like the person that is trying to Deprovision a user (Help Desk member) be asked who (from a list of existing active ... to leave the question 'blank', which means that no one gets access to the mailbox.

asked Apr 22 by RayBilyk (480 points)
2,246 questions
2,007 answers
19,945 users