--- title: "Set-VEODMailSettings" description: "Modifies Veeam Explorer for Microsoft OneDrive email settings. Veeam Explorer for Microsoft OneDrive uses these settings to send Microsoft OneDrive items as attachments in email messages." canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/set-veodmailsettings.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft OneDrive > Set-VEODMailSettings" dateModified: "2026-08-18" --- # Set-VEODMailSettings ## Short Description Modifies Veeam Explorer for Microsoft OneDrive email settings. Veeam Explorer for Microsoft OneDrive uses these settings to send Microsoft OneDrive items as attachments in email messages. **Product**: Veeam Backup for Microsoft 365 **Product Edition**: Community, Rental License, Subscription License ## Syntax This cmdlet provides the following parameter sets: ## Detailed Description This cmdlet modifies email settings for Veeam Explorer for Microsoft OneDrive. To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged. ::: note Email settings are global, they will be applied to all operations configured in Veeam Explorer for Microsoft OneDrive. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ClientId

Specifies the client ID obtained while registering an application in the Google Cloud console or Microsoft Identity platform.

String

False

Named

False

ClientSecret

Specifies a password.

Note: This parameter is required only for authentication with a Google account using a custom application.

SecureString

False

Named

False

Credentials

Specifies credentials that you want to use for authentication to the SMTP server.

Accepts the PSCredential object. To get this object, run the [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) cmdlet.

PSCredential

False

Named

False

EnableSendingEmails

Defines that Veeam Explorer for Microsoft OneDrive will send email messages.

Default: False

SwitchParameter

False

Named

False

From

Specifies an email address of the email sender.

String

True

Named

False

GoogleGmail

Defines that Veeam Explorer for Microsoft OneDrive will send email messages on behalf of a Google account.

Default: False

SwitchParameter

True

Named

False

MailApiUrl

Specifies the Microsoft Graph endpoint for sending mail.

Default: https://graph.microsoft.com/v1.0

String

False

Named

False

Microsoft365

Defines that Veeam Explorer for Microsoft OneDrive will send email messages on behalf of a Microsoft 365 account.

Default: False

SwitchParameter

True

Named

False

Port

Specifies a port number for connecting to SMTP server.

Int32

False

Named

False

Server

Specifies the full DNS name or IP address of the SMTP server for sending email messages.

String

False

Named

False

TenantId

Specifies a tenant ID in Microsoft Entra ID.

String

False

Named

False

UseAuthentication

Defines that the SMTP server requires authentication. Otherwise, the connection will be established to the SMTP server which does not enforce authentication.

Default: False

SwitchParameter

False

Named

False

UseSSL

Defines that Veeam Explorer for Microsoft OneDrive will enable a secure connection for sending emails.

If you do not provide this parameter, email messages will be sent through a connection that does not require TLS authentication.

Default: False

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Docs. ## Output Object The cmdlet returns the [`VBOOneDriveMailSettings`](vboonedrivemailsettings.md) object that contains mail settings configured for Veeam Explorer for Microsoft OneDrive. ## Examples ::: example ### Example 1. Modifying Email Settings for SMTP Server with Basic Authentication This command sends email messages through the default SMTP server with basic authentication. ``` Set-VEODMailSettings -EnableSendingEmails -Server smtp.office365.com -Port 25 -From veod@tech.com ``` Run the `Set-VEODMailSettings` cmdlet and specify the following settings: - Provide the `EnableSendingEmails` parameter. - Specify the `Server` parameter value. - Specify the `Port` parameter value. - Specify the `From` parameter value. ::: ::: example ### Example 2. Modifying Email Settings for Authentication with Microsoft 365 Account Using Veeam Application This command configures email messages with the following settings: - Email messages will be sent on behalf of the Microsoft 365 account. - Authentication will be performed using an application preinstalled by Veeam. ``` Set-VEODMailSettings -EnableSendingEmails -Microsoft365 ``` Run the `Set-VEODMailSettings` cmdlet and specify the following settings: - Provide the `EnableSendingEmails` parameter. - Provide the `Microsoft365` parameter. ::: ::: example ### Example 3. Modifying Email Settings for Authentication with Google Account Using Veeam Application This command configures email messages with the following settings: - Email messages will be sent on behalf of the Google account. - Authentication to Google will be performed using an application preinstalled by Veeam. ``` Set-VEODMailSettings -EnableSendingEmails -GoogleGmail ``` Run the `Set-VEODMailSettings` cmdlet and specify the following settings: - Provide the `EnableSendingEmails` parameter. - Provide the `GoogleGmail` parameter. ::: ::: example ### Example 4. Modifying Email Settings for Authentication with Microsoft 365 Account Using Custom Application This command configures email messages with the following settings: - Email messages will be sent on behalf of the Microsoft 365 account. - Authentication will be performed using a custom application registered in Microsoft Identity platform. ``` Set-VEODMailSettings -EnableSendingEmails -Microsoft365 -ClientId bd0xxxxx-2d90-0000-86f5-5488df12xxxx -TenantId xxxxde96-x000-4a97-8ae0-ba91c4aaxxxx ``` Run the `Set-VEODMailSettings` cmdlet and specify the following settings: - Provide the `EnableSendingEmails` parameter. - Provide the `Microsoft365` parameter. - Specify values for the `ClientId` and `TenantId` parameters. ::: ::: example ### Example 5. Modifying Email Settings for Authentication with Google Account Using Custom Application This example shows how to configure email messages with the following settings: - Email messages will be sent on behalf of the Google account. - Authentication to Google will be performed using a custom application registered in the Google Cloud console. ``` $securepassword = Read-Host -Prompt "Enter client secret" -AsSecureString Set-VEODMailSettings -EnableSendingEmails -GoogleGmail -ClientId 012345678901-xxxxxxxxxxxxxxxxxxxxxxxxxxxxkdgp.apps.googleusercontent.com -ClientSecret $securepassword ``` Perform the following steps: 1. Run the [`Read-Host`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/read-host?view=powershell-7.6) cmdlet. Specify the `Prompt` parameter value. Provide the `AsSecureString` parameter. Save the result to the `$securepassword` variable. 2. Run the `Set-VEODMailSettings` cmdlet. Specify the following settings: - Provide the `EnableSendingEmails` parameter. - Provide the `GoogleGmail` parameter. - Specify the `ClientId` parameter value. - Set the `$securepassword` variable as the `ClientSecret` parameter value. ::: ## Related Commands [``Read-Host``](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/read-host?view=powershell-7.6)