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

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

share|improve this question
    
are you sending emails to a group? –  Ashish Patel Feb 10 '12 at 13:22
    
No, it's a single user –  Spre3 Feb 10 '12 at 14:20
add comment

3 Answers 3

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 ?

share|improve this answer
add comment

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.

share|improve this answer
add comment
up vote 0 down vote accepted

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

share|improve this answer
    
Hmm, I'm wondering why this answer was marked and not mine. –  Ovidiu Becheş-Puia Feb 17 '12 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. –  Spre3 Feb 17 '12 at 10:58
add comment

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.