Thursday, August 14, 2014

Task list assigned to user email notofication enabling

Hi all, 
today I found a great information in the Internet that saved me from headache, hope it will help you too

Task list assigned to user email notofication enabling:

In SharePoint 2013 you will find that the option to enable email notification for Tasks list is no longer there. It used to be under List Settings > Advanced Settings > Send e-mail when ownership is assigned? (Yes/No). It is still there for Issues list in SharePoint 2013 however.
The good news is you can still enable it for Tasks list in SharePoint 2013, and it still works. The only thing is you’ll need to use PowerShell :). Use the script below to turn on email notification for a specific list:

$web = Get-SPWeb "http:///sharepoint/web"
$list = $web.Lists.TryGetList("Tasks")
$list.EnableAssignToEmail = $true
$list.Update()

Once email notification is enabled for the Tasks list, you will get the good old “The content of this item will be sent as an e-mail message to the person or group assigned to the item.” message when creating or editing an item in the list.
Note: Before you run this code, make sure that you have configured outgoing mail for the web application though. The option to enable email notification for Issues list does not appear in the UI until this is configured. So it’s best to configure this before running the PowerShell code for Tasks list

No comments:

Post a Comment