# Configure SMTP

Configuring SMTP server information is mandatory when sending out email notifications from Infraon. SMTP server configuration is a part of 'Getting Started' with Infraon. Mails sent to this address are converted as Incidents. This email address also acts as a reply to the mail address for all customer communication. Before configuring, ensure that you have the below details from your service provider:

* Host Name
* Host Username
* Password
* Port

There are two options within the SMTP server configuration. You can configure your existing email address onto Infraon or set up a new one using Infraon's email server.

## **Instructions to 'Configure SMTP'**

Go to Infraon Configuration -> Notifications -> Configure SMTP

On the page, either use the Microsoft OAuth login or manually enter API credentials.

### **Microsoft OAuth**

Click to log in using the Microsoft account.

Enter the Microsoft credentials and grant the appropriate permissions to configure the SMTP configuration easily.

### **Other**

There are two tabs in the SMTP configuration.

**Configuration | Test**

<table data-header-hidden><thead><tr><th width="233"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Label</strong></td><td><strong>Action</strong></td><td><strong>Description/Example</strong></td></tr><tr><td>SMTP Hostname*</td><td>Add the SMTP Hostname.</td><td>The service provider usually gives this.</td></tr><tr><td>SMTP Host Username*</td><td>Add the SMTP Host Username.</td><td>The service provider usually gives this.</td></tr><tr><td>SMTP Host Password*</td><td>Provide the SMTP password.</td><td>The service provider usually gives this.</td></tr><tr><td>Sender Email*</td><td>Add Sender's email address.</td><td>Mails sent through Infraon are delivered with the specified email address as the sender.</td></tr><tr><td>SMTP Host Port*</td><td>Add SMTP host's port details.</td><td>Use the toggle option to enable SSL or TSL encryption.</td></tr><tr><td>Authentication Type</td><td>Select the authentication type from the drop-down</td><td>Basic Authentication and OAuth2 Microsoft. Configure SMTP with Office 365 is now seamless, requiring Client Secret, Tenant ID, Client ID, and Authority. </td></tr></tbody></table>

**Configuration | Test**

| **Label** | **Action**                    | **Description/Example**                                                            |
| --------- | ----------------------------- | ---------------------------------------------------------------------------------- |
| Test      | Test the entered credentials. | Click 'Test' to send a test mail to authenticate the configured email credentials. |

Once the test is successful, click 'Submit' to save the configuration.


---

# 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.infraon.io/infraon-help/infinity-user-guide/infraon-configuration/notifications/configure-smtp.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.
