# Oauth2NotificationSettings

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Oauth2NotificationSettings/

Notification settings.

- **Full name:** `MFiles.Oauth2NotificationSettings`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-mail_source"></a>`mail_source` | [`MailSourceOauth2`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MailSourceOauth2/index.md) | 1 | OAuth2 specific data. |
| <a id="f-mail_from_address"></a>`mail_from_address` | `string` | 2 | The address of the sender when sending notifications with OAuth2. |
| <a id="f-authentication_timeout"></a>`authentication_timeout` | `uint32` | 3 | Maximum time in seconds to wait for the OAuth2 authentication to take place. |
| <a id="f-mail_service_timeout"></a>`mail_service_timeout` | `uint32` | 4 | Maximum time seconds to wait for the OAuth2 mail service request to be responded. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCServerAdmin.GetNotificationSettings](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/GetNotificationSettings/index.md): Gets the server's notification settings and mail-sending configuration (without the SMTP password).
- [IRPCServerAdmin.SetNotificationSettings](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/SetNotificationSettings/index.md): Sets the server's notification settings: whether notifications are on, the daily digest time, and the SMTP or OAuth 2.0 mail settings used to send them.

<a id="used-in-fields"></a>

## Used in fields

- [`SetNotificationSettingsRequest.oauth2_settings`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/SetNotificationSettings/index.md#request): OAuth2 specific data.
- [`GetNotificationSettingsResponse.oauth2_settings`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/GetNotificationSettings/index.md#response): OAuth2 specific data.
