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@″,”Test mail subject”,”test mail body”)

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 *