Test SharePoint Outgoing Mail

Use below commands SharePoint Management Shell in order to verify that SharePoint Outgoing mail works fine. Make sure you have added Outgoing Mail Server and Sending mail account under Outgoing email setting in Central Admin.

01. $site = New-Object Microsoft.SharePoint.SpSite(http://webSite)

02. $web = $site.OpenWeb()

03. $sent = [Microsoft.Sharepoint.Utilities.SpUtility]::SendEmail($web,0,0,”admin@domain.com”,”Test mail subject”,”test mail body”)

04. $sent

If the result from 04 is true. Outgoing E-mail is configured and working perfectly.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s