SharePoint 2016 – Configure Outgoing email settings using Gmail

In order to configure SharePoint 2016 Outgoing email settings using Gmail, try to follow these steps:

Step 1: Install “SMTP Server” feature from Windows Server Manager


Note: Make sure to Include management tools

Step 2: Open IIS 6.0 Manager


Step 3: In General Tab, make sure to use 25 TCP Port


Step 4: In Access Tab, select Anonymous access


Step 5: In Access Tab, Add local server IP


Step 6: In Messages Tab, it’s optional to disable “Limit number of messages per connection to”


Step 7: In Delivery Tab, add Gmail account


Step 8: In Delivery Tab, add Gmail Port 587


Step 9: In Delivery Tab, add Gmail SMTP


Step 10: In General Tab, copy Fully-qualified domain name


Note: Restart Simple Mail Transfer Protocol (SMTP) service from  services.msc

Step 11: Open SharePoint Central Administration and add Fully-qualified domain name  in Outbound SMTP server as the below image



SharePoint – Unexpected error occurred in method GetObject, usage SPViewStateCache

In case of SharePoint web part depends heavily in Viewstate to store large data or request, you may face an issue in SharePoint that sometime data is not saved and if you check the SharePoint logs you will find the below error:

Unexpected Unexpected error occurred in method ‘GetObject‘ , usage ‘SPViewStateCache‘ – Exception ‘Microsoft.ApplicationServer.Caching.DataCacheException:


It seems SharePoint try to cache the request using distributed cache service and this service has default limitations (20 seconds).

To fix the above issue, try to increase the RequestTimeout as the below PowerShell script:

$ViewStateCache = Get-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache
$ViewStateCache.RequestTimeout = 1000
Set-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache -DistributedCacheClientSettings $ViewStateCache


قواعد بيانات DynamoDb على بيئة خدمات أمازون ويب AWS

تتضمن هذه الورقات مجموعة من المواضيع التي تتعلق بقواعد بيانات DynamoDbعلى بيئة خدمات أمازون ويب AWS التي تساعد على فهم هذه الخدمة ومعرفة ما يمكن عمله وتنفيذه بأفضل الطرق.

تم كتابة هذه الورقات بالتعاون مع الصديق اسماعيل عنجريني




General SharePoint Considerations in Disaster Recovery solutions

These are important points to consider with remote SharePoint disaster recovery solutions:

  • When adding new Site Collection in a database that is replicated to the Disaster Recovery farm, make sure to update the configuration database in Disaster recovery farm to register the new created site collection because it will not automatically be updated, you can updated using the following PowerShell:
    $db = Get-SPDatabase | where {$_.Name -eq “DatabaseName”}
  • In case of multi subnet failover cluster, consider to use MultiSubnetFailover property for all SharePoint databases to make the connection to different subnet more stable and to avoid connection timeouts issue.
    For more information