How to enable Outbound SMTP server port box for email configuration in SharePoint 2010?

Sunny Rastogi 106 Reputation points
2024-10-16T05:42:45.51+00:00

Hi Team,

We are configuring Outgoing email for our web application but we are enable to see Outbound SMTP server port box in SharePoint 2010, please provide any alternate solution for putting the port number for the email configuration.

Note: Just want to mention that by default its taking 25 port number.

Looking for your feedback.

Microsoft 365 and Office | SharePoint Server | Development
{count} votes

2 answers

Sort by: Most helpful
  1. Sunny Rastogi 106 Reputation points
    2024-10-16T13:12:03.4866667+00:00

    Hi,

    I tried to implement the same approach but its not working and giving us the below error.

    Set-SPWebApplication : A parameter cannot be found that matches parameter name 'SMTPServerPort'.

    Request you to please suggest us on this, it will be appreciable.

    //Sunny

    0 comments No comments

  2. Xyza Xue_MSFT 30,256 Reputation points Microsoft External Staff
    2024-10-16T07:05:08.8533333+00:00

    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.

    Reference:https://learn.microsoft.com/en-us/sharepoint/administration/outgoing-email-configuration?tabs=CASEfarm%2CSEfarm%2CCASEweb%2CSEweb


    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.