Domanda

I am setting the AssignedTo and SendEmailNotification properties for the SPWorkflowTaskProperties object, the task gets created and assigned correctly but no email is received.

How can I check if this email is not getting sent or if it is getting sent but somehow blocked by the mail server?

Note that all other emails seem to be working correctly.

Thanks

È stato utile?

Soluzione 3

I randomly came across the solution on this post.

The problem was the E-Mail Notification option in the Advanced Task List Settings. This needs to be set to true and on a custom list this can be done by setting the attribute EmailAssignTo to true on the list definition.

<List xmlns:ows="Microsoft SharePoint" EmailAssignTo="TRUE">

</List>

I don't think this option is documented on MSDN. http://msdn.microsoft.com/en-us/library/ms415091.aspx

Altri suggerimenti

Since you are not using an email activity in wf, did you checked the option 'Send e-mail when ownership is assigned?' in the associated Tasks list is set to yes ?

Can you try sending the mail using System.Net.Mail ? Here you have a property called DeliveryNotificationOptions which could bring you delivery notification status whatever happens.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top