SharePoint Powershell command to verify if the Outgoing Email Functions in Sharepoint Environment

SharePoint Powershell command to verify if the Outgoing Email Functions in Sharepoint Environment

$site = New-Object Microsoft.SharePoint.SpSite(“http://atlasdev/eastern”) $web = $site.OpenWeb() $sent = [Microsoft.Sharepoint.Utilities.SpUtility]::SendEmail($web,0,0,”admin@34.231.97.77″,”Test mail subject”,”test mail body”) $sent Running this command will come back with either true or false. If its true then the email will be delivered. If its false then the…

Bitnami