Trigger Email Resend for Failed Email

Which IIQ version are you inquiring about?

8.4

Please share any images or screenshots, if relevant.

Hi Experts,

I would like to know if there is any way to trigger a resend of an email that failed due to a timeout.

Hello @Bernardc,

My two cents: use BeanShell to resend the email using the original context. Wrap the logic in a try-catch block so you can capture and log any exceptions or failures for monitoring or retries.

Try to Create a temporary BeanShell rule or script to manually call EmailUtil.sendEmail() for the failed event.

Example BeanShell Like:

import sailpoint.tools.EmailOptions;
import sailpoint.tools.EmailUtil;

EmailOptions options = new EmailOptions();
options.setTo("user@example.com");
options.setSubject("Resend: Access Request Notification");
options.setBody("This is a resent email due to prior failure.");
EmailUtil.sendEmail(context, options);

If you go to [IdentityIQ base URL]/monitor/requests/requests.jsf, do you see the email queued there? The default settings should have emails queue and retry 20 times. Have you checked your emailNotifierSendImmediately setting in SystemConfiguration? It should be set to false if you want the built in retry queueing.

Best Practices: Email Configuration

Hi @drardin ,

As checked, no email was queued in /monitor/requests/requests.jsf. Does it mean the email sent successfully in the next 20 retries?

Also, I did not see emailNotifierSendImmediately in SystemConfiguration.

That would be my assumption, but there’s a small chance you overran the maximum amount allowed in the queue too. I think it would show a different error message if that were the case though.

You should be able to check your audit logs for emailSent actions to try and verify.