# Alerts

A*pplies to: On-premises Publisher*

To keep you informed when new applications and updates have been published, we provide three different ways to get notifications in your environment:

* [Email Report](#smtp-settings)
* [Teams Webhook](#teams-webhook)
* [Slack Webhook](#slack-webhook)

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FcT69JUuDP9sFS8I3fqcz%2Fimage.png?alt=media&#x26;token=858de0b9-100b-4f78-bb83-78fa0135a1fb" alt=""><figcaption></figcaption></figure>

## Email Report

{% hint style="info" %}
**IMPORTANT**\
Modern authentication is in development for Patch My PC Publisher. At this time, Publisher relies on basic SMTP authentication for sending email reports.

Please refer to [this](https://patchmypc.com/patch-my-pc-smtp-authentication-for-exchange-online) article for more information on how to enable SMTP authentication for a specific mailbox, which will allow Patch My PC Publisher to authenticate and send emails through your Exchange Online environment.
{% endhint %}

You can configure the Publisher to send email notifications whenever new updates or applications are published. Follow the steps below to set up SMTP correctly.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FS24Z8NuqTcoicr2L9tWA%2Fimage.png?alt=media&#x26;token=60edfb9f-d9f1-4b4a-a546-d36efdd6eaad" alt=""><figcaption></figcaption></figure>

**1. Sender** (Required)\
Enter the email address you want the alerts to come *from*. e.g. `alerts@yourdomain.com`

**2. Recipients** (Required)\
Enter the email address(es) that should *receive* the alerts. You can enter multiple addresses separated by a semicolon. e.g. `alerts@yourdomain.com; security@yourdomain.com`

**3. CC Recipients** (Optional)\
Add any additional recipients if needed.

**4. Server** (Required)\
Enter your mail server address. e.g. `yoursmtpserver.yourdomain.com`

**5. Port** (Required)\
Typically the SMTP server port is 25, 587, or 465 but this can vary depending on the SMTP provider. If you select **Use TLS**, the Publisher will automatically switch the port to 587 (the standard TLS port), but you can change it if your provider requires a different value.

**6. Email Authentication**\
When choosing an authentication method, select the option that aligns with how your mail system accepts SMTP connections. Some environments allow internal relays without credentials, while most cloud providers require authenticated or TLS-secured connections. The right choice depends on whether your SMTP server supports anonymous relay, requires a dedicated username and password, or allows integrated Windows authentication.

* **Anonymous**\
  Use this only if your SMTP relay explicitly allows unauthenticated sending. Most cloud providers (including Exchange Online) **do not** support anonymous SMTP, so this option typically only works with on-premises mail relays configured to accept unauthenticated traffic from trusted internal IPs.
* **Specified User** (Recommended)\
  Use this when your SMTP server requires authentication. Enter a valid username and password for the mailbox or SMTP relay account you want the Publisher to use.\
  This is the recommended option for most environments, including Exchange Online, Gmail, and any authenticated SMTP relay. Enter a username in the **Login** field and password in the **Password** field to be used for SMTP authentication.
* **System**\
  Uses the Windows account running the Patch My PC Publisher service.\
  Choose this only if your SMTP relay supports integrated authentication (NTLM/Kerberos).\
  This is usually limited to on-prem Exchange servers or internal SMTP relays on the same domain. The Publisher will typically be running in the SYSTEM context.

{% hint style="success" %}
**Note:** At the top of the **SMTP Setttings** section, you can choose from the **Common Email Providers** dropdown (Office 365, Outlook.com, Gmail, etc.).

![](https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FEAT6vsoelbFU9f7cK1w8%2Fimage.png?alt=media\&token=4ac44cc4-67ed-47d5-9904-074878290fc6)

Selecting one will auto-populate the server name, port, and TLS settings for that provider. You can still change any field manually afterwards.
{% endhint %}

**7. Change Subject** (Optional)\
The default email subject is `Report from Patch My PC Publishing Service`. If you wish to change this, click **Change subject**, enter your preferred **Subject of the email**, and click **Ok**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F9qjChqo9RjdfifQqS91v%2Fimage.png?alt=media&#x26;token=9a4fe6b8-49ac-467e-a161-1a8e6874b75a" alt=""><figcaption></figcaption></figure>

Once the settings are complete, you can click the **Test button** to see if the recipient received the test email. If you have any issues sending emails, it’s likely an SMTP configuration error, and you can review our article [**Troubleshooting SMTP Email Report Sending When Using Patch My PC**](https://patchmypc.com/troubleshooting-smtp-email-sending).

**8. Add text to body** (Optional)\
Enter any additional text you want included at the top of the email report, such as notes or context for your recipients.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F37ZQub6ZN96F4poFaRVM%2Fimage.png?alt=media&#x26;token=7dfd5ac3-c0c0-4ac6-9869-0b09d54d662d" alt=""><figcaption></figcaption></figure>

**9.** Click **Apply** to save your changes.

Once the SMTP settings are saved, the Publisher will automatically send an email at the end of each synchronization when any updates or applications have been published. More information on how publishing alerts work for email, please review the following knowledgebase article.

{% embed url="<https://patchmypc.com/kb/how-publishing-alerts-work-patch/#h-smtp-settings>" %}

If you have issues setting up SMTP emails, check out our troubleshooting guide below.

{% embed url="<https://patchmypc.com/troubleshooting-smtp-email-sending>" %}
SMTP email troubleshooting
{% endembed %}

## Teams Webhook

The Microsoft Teams webhook is a simple way to get a notification for each application as it is published in yourenvironment. Simply create a new workflow in the Teams channel where you wish to receive notifications, and use that Webhook URL when configuring webhook alerts in the Publisher.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F7HGy2JuVqI5fVuAQmdZd%2Fimage.png?alt=media&#x26;token=19159daf-51e9-45dd-ad9e-fc94441a7228" alt=""><figcaption></figcaption></figure>

Need help creating the webhook in teams? No problem, check out our complete guide to creating a Teams webhook.&#x20;

{% embed url="<https://patchmypc.com/kb/how-publishing-alerts-work-patch/#h-how-to-create-a-microsoft-teams-webhook-url>" %}

## Slack Webhook

The Slack webhook is another simple way to get a notification for each application as it is published in your environment. Simply create a new webhook in Slack and use that Webhook URL when configuring webhook alerts in the Publisher.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F6OvS8KsRGWgELuxUNNvX%2Fimage.png?alt=media&#x26;token=64e0034c-0fcc-4c81-9433-b4e2b85c3130" alt=""><figcaption></figcaption></figure>

Need help creating the webhook for Slack? No problem, check out our complete guide to creating a Slack webhook.&#x20;

{% embed url="<https://patchmypc.com/kb/how-publishing-alerts-work-patch/#h-how-to-create-a-slack-webhook-url>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.patchmypc.com/installation-guides/intune/alerts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
