2

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

2
  • are you sending emails to a group? Feb 10, 2012 at 13:22
  • No, it's a single user
    – Perbert
    Feb 10, 2012 at 14:20

3 Answers 3

1

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 ?

0

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.

0

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

2
  • Hmm, I'm wondering why this answer was marked and not mine. Feb 17, 2012 at 7:20
  • I had solved my problem before you answered, just couldn't post my solution due to time limit. But I wouldn't have been able to solve it with your answer anyway since it doesn't tell me how to set that option in a custom list. More than happy to mark your's as an answer if you want.
    – Perbert
    Feb 17, 2012 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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