Hello guys,
I have created a Tasks List using a List Definition approach - and surprisingly the Email notification option is missing under Advanced Settings - Below is the xml.
- Note that the outgoing mail settings is configured.
- Also note that when I create a new Task List (using the SharePoint Task built in one), there the option is available...
- I thought that the Type value has to be 107 however there is guy who has set the same value and got the same experience see here
- Tried to enable it using code however you will get the good old below message when creating or editing an item in the list but it is not practical as its still missing from the Advanced Settings.
“The content of this item will be sent as an e-mail message to the person or group assigned to the item.”
What can be wrong ?
SPWeb web = site.OpenWeb(); SPList list = web.Lists["MyTaskList"]; list.EnableAssignToEmail = true; list.Update();
Elements.xml<ListTemplate Name="Tasks" Type="10000" BaseType="0" OnQuickLaunch="TRUE" SecurityBits="11" Sequence="360" DisplayName="Tasks" Description="My List Definition" Image="/_layouts/images/ittask.png"/> Schema.xml <List xmlns:ows="Microsoft SharePoint" Title="Tasks" FolderCreation="FALSE" Direction="$Resources:Direction;" EnableContentTypes="TRUE" Url="Lists/Tasks" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">