Setup outgoing Email Configuration for SharePoint Using Powershell

Add-PSSnapin Microsoft.SharePoint.PowerShell

$SMTPSvr = ‘smtprelay.domainname.com’

$FromAddr = ‘noreply@.domainname.com’

$ReplyAddr = ‘noreply@domainname.com’

$Charset = 65001

$CAWebApp = Get-SPWebApplication -IncludeCentralAdministration | Where { $_.IsAdministrationWebApplication }

$CAWebApp.UpdateMailSettings($SMTPSvr, $FromAddr, $ReplyAddr, $Charset)

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami