Forum Discussion

Matthew Carter's avatar
Matthew Carter
Iron Contributor
Mar 15, 2022
Solved

SP2019 - unable to email - test with SP2013 workflow and incoming email

I am trying to get email to work.   I have a SharePoint 2019 system and I am testing a quick / simple workflow with SharePoint Designer 2013 and a SP2013 workflow.   I have two servers in the far...
  • Matthew Carter's avatar
    Mar 24, 2022
    Ran into this and opened a ticket with Microsoft, just got it resolved with this.
    SharePoint 2019 - new farm March 2022 CU.
    We couldn't get emails to work. We could Telnet email, and could PowerShell emails. However Alert-Me - didn't work; SharePoint 2010 / 2013 emails didn't work. We then ran this and checked, it said that Outbound Email was using SSL - yes - HOWEVER it should NOT be enabled. So we then set it to False and checked and emails all worked in alerts and in SP2010 and SP2013 workflows!

    PS C:\Users\Service.spfarm> $webapp=get-spwebapplication "https://DNSName-notServerName"
    PS C:\Users\Service.spfarm> $webapp.OutboundMailEnableSSL
    True
    PS C:\Users\Service.spfarm> $webapp.OutboundMailEnableSSL =$false
    PS C:\Users\Service.spsfarm> $webapp.update()
    PS C:\Users\Service.spfarm> $webapp.OutboundMailEnableSSL
    False
    PS C:\Users\Service.spfarm>


    Run these to use the DNS name of your farm https://SharePointFarmNameHere (NOT the FQDN or NETBIOS name of your server - SPFarm2019-0) (NO!)

    $webapp=get-spwebapplication "https://DNSName-notServerName"
    $webapp.OutboundMailEnableSSL

    That will tell you TRUE or FALSE.

    To change it to false (to change it to true, change $false to $true)

    $webapp.OutboundMailEnableSsl =$false

    Then update it:
    $webapp.update()

    Then check the value, hopefully (IF YOU WANT IT TO BE FALSE) it should be T or F.
    $webapp.OutboundMailEnableSSL

Resources