Hi @Sunny Rastogi ,
Thank you for posting in this community.
Microsoft SharePoint Server 2010 follows the Fixed Lifecycle Policy: Apr 13, 2021.We recommend that you upgrade as soon as possible.
Run the following PowerShell commands to get the web application and then configure the outgoing email settings for that web application.
$WebApp = Get-SPWebApplication -Identity <web application URL>
$SmtpServer = "mail.example.com"
$SmtpServerPort = 587
$FromAddress = "user@example.com"
$ReplyToAddress = "replyto@example.com"
$Credentials = Get-Credential
$smtpcert = Get-SPCertificate -Identity "SMTP Cert"
Set-SPWebApplication -Identity $CentralAdmin -SMTPServer $SmtpServer -SMTPServerPort $SmtpServerPort -OutgoingEmailAddress $FromAddress -ReplyToEmailAddress $ReplyToAddress -SMTPCredentials $Credentials -Certificate $smtpcert
Note:
To specify credentials for SMTP authentication, use the Get-Credential
cmdlet and pass it as the value for the -SMTPCredentials
parameter. To specify that SharePoint should connect to the SMTP server anonymously, pass $null as the value for the -SMTPCredentials
parameter. If you don't specify the -SMTPCredentials
parameter, it will preserve the existing authentication settings.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.