Monitoring e-mails

Occasionally, e-mails may fail to send. If they are being sent through the batch framework, the message will remain in the Outgoing e-mail table.

This table only shows e-mails that were sent via the batch framework. E-mails that are sent directly (for example, the e-mails that don't have the Batch group set) report errors directly to the user in Infolog.

Getting ready

Simply log in to AX as the system administrator.

How to do it...

To monitor the outgoing e-mails or to resend failed e-mails, please follow these steps:

  1. Navigate to System administration | Periodic | E-mail processing | E-mail sending status. This opens the date filter from the Outgoing e-mail table, filtered to only those with errors, as shown in the following screenshot:
    How to do it...
  2. You can view the sent e-mails by clicking on Also show sent e-mails. Again, only e-mails that are sent via batch framework are visible here.
  3. You can click on Show message to display the e-mails rendered as HTML.
  4. In order to retry sending a failed message, click on Restart send.
  5. You can create an alert against the records that have failed; you can thus avoid having to manually check the table.
  6. If the fault is with the SMTP configuration, the message will not be created in this table, it will be in the batch queue as an error.
    How to do it...
  7. Click on Log to see the message; in this case, the SMTP server cannot be contacted.
  8. To correct the e-mail parameters, navigate to Function | Change status and change the Batch Job status to Waiting.

How it works...

All the e-mails sent via the batch queue are created in the Outgoing e-mail table. If the e-mail process fails, the record is updated with an error status. The form is simply a view of this table, filtered to those with the status of not sent.

There's more...

If you see the e-mails not sent and just sitting in outgoing e-mail table, it will most likely be because the batch process has not been triggered or has failed.

To trigger the batch service:

  1. Navigate to System administration | Periodic | E-mail processing | Batch.
  2. In the batch submission form, select a Batch group that will process the e-mails and check Batch processing.
  3. Next, click on Recurrence.
  4. Ensure that No end date is selected (by default, it runs once).
  5. Set the frequency at which any unsent e-mails in the queue should be sent; the default is 10 minutes and should suffice.
  6. Click on OK in the recurrence form.
  7. Click on Alerts, ensure that only Error is selected, and click on OK.
  8. Click on OK that appears on the batch dialog, which submits the task to the batch framework.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.4.181