--- title: "Email Alerts" slug: "email-error-alerts" updated: 2024-03-24T14:31:29Z published: 2024-03-24T14:31:29Z canonical: "skthelp.syniti.com/email-error-alerts" --- > ## Documentation Index > Fetch the complete documentation index at: https://skthelp.syniti.com/llms.txt > Use this file to discover all available pages before exploring further. # Email Error Alerts You can configure Syniti Replicate to send email alerts when certain events occur during replication using one of the following three options: - [Define email alert messages for a specific replication](/v1/docs/email-error-alerts#defining-email-alert-messages-for-replications-andor-the-data-replicator) using the [Replication Alert Properties dialog](/v1/docs/replication-alert-properties-dialog). - [Define email alert messages for all replications and/or the Data Replicator](/v1/docs/email-error-alerts#defining-email-alert-messages-for-replications-andor-the-data-replicator) using the [Server Alert Properties dialog](/v1/docs/server-alert-properties-dialog). - [Write a script using the SendMail function](/v1/docs/email-error-alerts#writing-a-script-using-the-sendmail-function) to generate email alerts on any available replication event ## Defining Email Alert Messages for a Specific Replication This option provides a way to quickly define email alert messages for a selected replication using the [Replication Properties dialog](/v1/docs/replication-properties-dialog) and the the [Replication Alert Properties dialog](/v1/docs/replication-alert-properties-dialog). 1. In the Management Center **Metadata Explorer**, select a replication. 2. From the right mouse button menu, choose **Replication Properties**. 3. In the **Replication Properties** dialog, go to the **Alerts** tab. 4. Click **Add Alert** to open the **Replication Alert Properties** dialog. 5. Use the [**Alert Settings tab**](/v1/docs/replication-alert-properties-dialog) to choose which events to include in an email. 6. Set the Alert Schedule if you want to limit the number of emails you receive. 7. Go to the **Message Layout** tab. 8. Type recipient email addresses, separated by semi-colons. 9. Edit the email **Title** and **Body** text as needed. 10. Optionally specify HTML format and/or Syniti Replicate log attachment. 11. Click **OK** to create the alert and close the Replication Alert Properties dialog. 12. Click **OK** to close the Replication Properties dialog. 13. In the Management Center **Metadata Explorer**, select the server (usually **local**), then, from the right mouse button menu, select **Data Replicator Options...** to open the [Data Replicator Options dialog](/v1/docs/replication-agent-options-dialog). 1. Go to the **Mail** tab. 2. Enter the SMTP Server and Port Number for your email server. 3. Enter an email address in the **From** field. 4. Enter an email recipients in the **To** field. 5. Set authentication and SSL encryption as needed for your email server. 6. Click **Test Email** to be sure that the email information you have entered is correct. 14. Stop and restart the Data Replicator to enable the email alert(s). ## Defining Email Alert Messages for Replications and/or the Data Replicator This option provides a way to quickly define email alert messages for the Data Replicator and/or all replications associated with the server using the [Data Replicator Options dialog](/v1/docs/replication-agent-options-dialog) and the the [Server Alert Properties dialog](/v1/docs/server-alert-properties-dialog). 1. In the Management Center **Metadata Explorer**, select a server (usually **local**). 2. From the right mouse button menu, choose **Data Replicator Options**. 3. In the **Data Replicator Options** dialog, go to the **Alerts** tab. 4. Click **Add Alert**, then **Add Event Alert** to open the **Server Alert Properties** dialog. 5. Use the [**Alert Settings tab**](/v1/docs/server-alert-properties-dialog) to choose which events to include in an email. 6. Set the Alert Schedule if you want to limit the number of emails you receive. 7. Go to the **Message Layout** tab. 8. Type recipient email addresses, separated by semi-colons. 9. Edit the email **Title** and **Body** text as needed. 10. Optionally specify HTML format and/or Syniti Replicate log attachment. 11. Click **OK** to create the alert and close the Server Alert Properties dialog. 12. In the Replication Agent Options dialog: 1. Go to the **Mail** tab. 2. Enter the SMTP Server and Port Number for your email server. 3. Enter an email address in the **From** field. 4. Enter an email recipients in the **To** field. 5. Set authentication and SSL encryption as needed for your email server. 6. Click **Test Email** to be sure that the email information you have entered is correct. 13. Stop and restart the Data Replicator to enable the email alert(s). You can also use the Alerts tab in the Data Replicator Options dialog to generate an email Activity Report: 1. In the **Data Replicator Options** dialog, go to the **Alerts** tab. 2. Click **Add Alert**, then **Add Activity Report** to open the **Server Alert Properties - Activity Report** dialog. 3. Complete the dialog and set up your email server using the **Mail** tab. ## Writing a Script Using the SendMail Function This option allows you to build a fully customized email message using any of the [replication events](/v1/docs/replication-script-events) made available in Syniti Replicate. In the Management Center **Metadata Explorer**, select the server for which you want to set email alerts, then, from the right mouse button menu, select **Data Replicator Options...** to open the [Data Replicator Options dialog](/v1/docs/replication-agent-options-dialog). 1. Go to the **Mail** tab. 2. Enter the SMTP Server for your email account. 3. Enter your email address in the **From** field. 4. Enter the email recipients in the **To** field. 5. Click **Test Email** to be sure that the email information you have entered is correct. Use a [SendMail function](/v1/docs/global-script-functions#sendmail-subject-body) from a [script](/v1/docs/writing-scripts-in-syniti-replicate) to provide an email alert as in the example below. ```plaintext SendMail ("Message from Syniti Replicate", "An error occurred that requires the intervention of the system administrator.") ``` **Related Topics** [Server Alert Properties Dialog](/v1/docs/server-alert-properties-dialog) [Replication Alert Properties Dialog](/v1/docs/replication-alert-properties-dialog) [Data Replicator Options Dialog](/v1/docs/replication-agent-options-dialog) [Mail Tab](/v1/docs/replication-agent-options-dialog#mail) [SendMail Function](/v1/docs/global-script-functions#sendmail-subject-body) [Writing Visual Basic .NET Scripts](/v1/docs/writing-scripts-in-syniti-replicate)