Sharepoint

Setup outgoing Email Configuration for SharePoint Using Powershell

Add-PSSnapin Microsoft.SharePoint.PowerShell $SMTPSvr = ‘smtprelay.domainname.com’ $FromAddr = ‘noreply@.domainname.com’ $ReplyAddr = ‘noreply@domainname.com’ $Charset = 65001 $CAWebApp = Get-SPWebApplication -IncludeCentralAdministration | Where { $_.IsAdministrationWebApplication } $CAWebApp.UpdateMailSettings($SMTPSvr, $FromAddr, $ReplyAddr, $Charset)

SharePoint Wait Page

Using The Microsoft.SharePoint namespace provides the SPLongOperation class you can let the user to see the wait page till the operation gets completed. As this class implements the IDisposable interface, the best is to use a using statement like in the following example: void buttonProcess_Click(object sender, EventArgs e)…

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