Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We have a SharePoint 2010 solution that uses a standard task list.

We would like to turn off alerts for when items change in / are added to the task list.

Is there a way to do this in code, either when we create the site, or when we add items to the task list?

Edit

The solution given by Rob for changing the setting via the UI works fine.

However, we have had problems doing it via code.

Changing the EnableAssignToEmail through code does not affect the value of "Send e-mail when ownership is assigned?".

What is interesting is that setting the "Send e-mail when ownership is assigned?" in the UI from yes to no, will set EnableAssignToEmail to false. But setting it back to yes will not have any affect on EnableAssignToEmail.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

On the task list, go to List Settings --> Advanced settings. There is an "Email Notification" setting that defaults to yes. Changing it to no should work for you.

To do it programatically from your event receiver: SPList.EnableAssignToEmail = false;

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.enableassigntoemail.aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.