--- title: "Set-VEODSmtpSettings" description: "Modifies SMTP settings. In Veeam Backup for Microsoft 365 7a and Veeam Backup & Replication 12.1, this cmdlet became deprecated. Use the Set-VEODMailSettingsModifies Veeam Explorer for Microsoft OneDrive email settings." canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/set-veodsmtpsettings.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft OneDrive > Set-VEODSmtpSettings" dateModified: "2026-08-18" --- # Set-VEODSmtpSettings ## Short Description Modifies SMTP settings. ::: note In Veeam Backup for Microsoft 365 7a and Veeam Backup & Replication 12.1, this cmdlet became deprecated. Use the [`Set-VEODMailSettings`](set-veodmailsettings.md) cmdlet to define email settings. ::: **Product**: Veeam Backup for Microsoft 365 **Product Edition**: Community, Rental License, Subscription License ## Syntax ``` Set-VEODSmtpSettings [-ConfigureSmtpSettings] [-Server ] [-Port ] [-From ] [-UseAuthentication] [-Credentials ] [-UseSSL] [] ``` ## Detailed Description This cmdlet modifies SMTP settings for Veeam Explorer for Microsoft OneDrive. These settings are required if you want to send restored items as email attachments. To modify settings, enter the necessary parameters with new values. The parameters that you omit will remain unchanged. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ConfigureSmtpSettings

Defines that Veeam Explorer for Microsoft OneDrive will use the SMTP server settings for sending restored items.

Default: False

SwitchParameter

False

Named

False

Credentials

Specifies the credentials. The cmdlet will use these credentials for authenticating to an 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

From

Specifies an email address from which Veeam Explorer for Microsoft OneDrive will send restored OneDrive data.

This email account must have the rights to connect to an SMTP server if the SMTP server requires authentication.

String

False

Named

False

Port

Specifies a port number. The cmdlet will use this port number to connect to an SMTP server.

Int32

False

Named

False

Server

Specifies the full DNS name or an IP address of the SMTP server. The cmdlet will use this information to send restored items in email messages.

String

False

Named

False

UseAuthentication

Defines that the SMTP server requires SMTP authentication for outgoing mail.

Default: False

SwitchParameter

False

Named

False

UseSSL

Defines that a secure connection is required 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 [VBOOneDriveSmtpSettings](vboonedrivesmtpsettings.md) object that contains SMTP settings configured for Veeam Explorer for Microsoft OneDrive. ## Examples ::: example ### Modifying SMTP Settings This example shows how to change credentials that Veeam Explorer for Microsoft OneDrive uses for authenticating to an SMTP server. ``` $credentials = Get-Credential Set-VEODSmtpSettings -ConfigureSmtpSettings -Server test.support.local -Port 25 -From administrator@test.local -UseAuthentication -Credentials $credentials -UseSSL ``` Perform the following steps: 1. Run the [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) cmdlet to create a credential object. Type Windows credentials to connect to the Veeam Backup for Microsoft 365 server. Save the result to the `$credentials` variable. 2. Run the `Set-VEODSmtpSettings` cmdlet. Specify the following settings: - Provide the `ConfigureSmtpSettings` parameter. - Specify the `Server` parameter value. - Specify the `Port` parameter value. - Specify the `From` parameter value. - Provide the `UseAuthentication` parameter. - Set the `$credentials` variable as the `Credentials` parameter value. - Provide the `UseSSL` parameter. ::: ## Related Commands [``Get-Credential``](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6)