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 email functionality dosent work in the sharepoint box.

Leave a Reply

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

Bitnami