.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

notification email not sent when updating a task programmatically

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
I have a task that's in the task list and has no value in the Assigned To field. When I update the field like this: listItem[SPBuiltInFieldId.AssignedTo] = SPContext.Current.Web.CurrentUser.ID; ListItem.Update(); The task is updated (the assigned to has filled in). But no notification has been send to the person in the assigned to. But when I change the assigned to manualy to another person, and then again to the person it was before, the notification is send. So the email works and the notifications are activated, why is there no notification sent when I change the assigned to programmatically?

View Complete Post

More Related Resource Links

Sharepoint 2010 WorkFlow Task AssignedTo Windows Group doesnt send email notification

Hi, Which configuration would prevent sharepoint to send a notification when a workFlow task is assigned to a Windows Group with an email ? The same task with a single User send a notification. Thanks, Patrice      

email alert notification when task status column value is chaned


Hi All,

I am creating a document library in which there are few columns present (like Assigned To,Task Status,Reviewr etc.)

I want to send alert or email notification when the status value is changed. Alert should go to "Assigned To" selected value from the Reveiwers name.

I have tried this with "alert me" functionality provided by WSS 2007 but I think it will not sufficient for me?.

I am not able to proceed please help me?

Why wss 3.0 backup site throwing email notification for completed task




We have taken backup and restore site in different box with all document and workflow (including workflow status) using STSADM.


Now the new backed up site is sending email notification for completed task from new box where task status is showing as completed.


Is it something that we also need to take backup of workflow runtime also? Not sure


Please advice.

Regards Sudip Misra sudipmisra@hotmail.com +91-9916768623 Bangalore

email notification error 5.1.1


 I am getting an error when sending email via asp.net.  The error is "Mailbox unavailable. The server response was: 5.1.1...User unknown."

However, the email is getting sent.  Why is asp.net returning this error?

I'm using VS 2008, vb.net,  running 2.0 framework.  This happens regardless of whether I'm testing my application from my local machine or running production version.  Also, I can send a batch of emails and get the error for some but not all.

I would like to be able to count of the error messages really being accurate, so this situation is unhelpful to our users, because they will start to just ignore all error messages.




Updating Task Lists and Form Libraries From Workflow Form


There are actually two separate (I think) problems here. The scenario: I used the SharePoint Designer 2007 to create a workflow attached to a form library. When a form is submitted to the library, a To-Do-Item is created on a task list. The To-Do-Item is initially assigned to a GROUP. A user from the group then selects the name of an individual from a choice list in edit item. This person now becomes the Assigned To for the task.

What is needed is 1) To update the Assigned To column of the Form library when someone in the GROUP assigns the task to an INDIVIDUAL; and 2) To have the Due Date from the submitted InfoPath form propagate to the task list.

I've tried having one workflow try to do everything and also having a secondary workflow set up on the task list to do the task assignment update but have not been successful in solving either issue. I don’t think that I am really understanding how to Define Workflow Lookup when not working with the Current Item. I know what fields I want but I don’

Email task is not accepting the value from TO line

Hi. I'm trying to send an email to the TO: address in the following format "[Fax:blablalba@blablalba]" Send mail task tells me that the input string is in the incorrect format for email. How to skip this and send it out anyway? We have an Exchange server configured, which will send that type of email to the fax gateway. Thanks heaps, Kaarel.

Task assignment to user without read access in 2007 results in no email to assignee, no warning to a

It appears (from observation and searching) that SP 2007 will not send a task assignment email when the assignee does not have read access for the assigned task and there is no warning when assigning a task to someone who will be unable to read it. I have not been able to find any mentions of attempting to address this quirk by either an item event listener or a workflow that would either prevent the assignment or task the originating user to fix the issue by either changing the assignment or having them added to the appropriate group.  I could see one done badly causing a cascade of tasks. The approaches that I've thought about are: Attempt to block assignment by hooking ItemAdding and ItemUpdating on the task content type.  In ItemUpdating, you could use SPListItem.DoesUserHavePermissions since the SPListItem should be there, but you'd may have check the list since I don't think SPListItem is available at that time.  I could see this causing problems when the assignment is via workflow or something that doesn't like other code interfering with its task creation. Hooking ItemAdded and ItemUpdated to assign a new task to the assigning user to either change the assignment or have the assignee added to the users with access to the site. Define a workflow which could be enabled for a list that would check if any new or modified task is assigned to users with

SSIS 2005 - Send Mail Task - signature appended to email is garbled - unicode problem?

Hi, I'm pretty new to SSIS so go easy on me. I have a Send Mail Task to notify if a file cannot be imported - the mailbody is created on the previous step by a VB.NET script task to include the name of the file and the path it's been archived to. The problem I'm having is that while the body of the email I've created is displaying fine, our company's Exchange server appends a signature to all emails, and this is coming up as undisplayable characters, presumably due to some kind of unicode encoding problem. I've tried casting the email body in an expression to DT_STR (doesn't work as DT_STR "cannot be converted to a supported type" which seems a bit odd but never mind), DT_WSTR (garbled signature), DT_TEXT/DT_NTEXT (strange error on this one - "Attempted to read or write protected memory") none of those ideas worked, and I'm a bit stumped now. Can anyone help? I'm using SSIS 2005 with SP3

Site FAQ: Email Notification Settings

There are several settings that come into play with email notifications coming from the ASP.NET forums:Edit Profile (http://forums.asp.net/user/EditProfile.aspx)1. Receive Emails: [ ] Yes  [ ] No - This is the master email switch. Setting this to [ ] No will prevent ALL forums-related emails from being sent to you, including password reset emails (if you find yourself in that situation, please use the site's Contact form to request password reset assistance).  Setting this back to [ ] Yes will allow emails to once again be sent to you.  This setting could be handy if you will be away from the ASP.NET Forums for a while and are not interested in receiving emails from the site while you are away.2. Receive rich (HTML) emails [ ] Yes [ ] No - This affects only the format in which emails are sent.  It has no bearing on whether or not emails are sent.  If [ ] No is chosen, the email will be sent in plain text.3. Enable Email Notifications of forum/thread subscriptions and replies to my posts. [ ] Yes  [ ] No - This is the default value of thread subscriptions. This value is checked only at the time of your first post to a thread, and the thread subscription is set to this value. Changing this value has no effect on any existing thread subscriptions. To discontinue (or start) receiving email notifications for a particular thread, see #5 below.&n

Updating Email of Membership

Hi I have this form to update a users details. This really should work but doesn't seem to want to update the email, isApproved etc. The onload data is within "If not ispostback". I can't see why this won't work. It is attached to an update button btw.Dim UserId As Guid = New Guid(Request.QueryString("UID")) Dim current As MembershipUser = Membership.GetUser(UserId) current.Email = EmailTxt.Text current.Comment = CommentsTxt.Text current.IsApproved = ApprovedChk.Checked Membership.UpdateUser(current)      

Workflow/Task Email Truncating Titles Containing Period "." Sign

We are using the built-in approval workflow which assigns tasks to approvers in a standard task list.  When the email's are sent for both task and approval notifications the title contained in the body is truncated when it contains a period sign.  For example, a file name of "1.2322.343 Test File" shows up just as "1" in the body and subject of the email.  See below. This used to work just fine in MOSS 2007 so I assume this is an issue with 2010.  Anny ideas? Email Body: Approval has started on 1. Participants are Due by 1/1/0001 12:00:00 AM Each person will receive a task to approve 1. The tasks will be assigned one at a time for participants shown above.    

Notification not working on task assignment

Hello all, On a task list when "Read access" is set to "only their own", and you select "Yes" for "E-Mail Notification", the user is not being notified when a task is assigned to them. This was supposedly fixed in the Feb 2010 CU (see http://support.microsoft.com/kb/978396/en-gb) where it says... "You are no longer notified when a task is assigned to you. This issue occurs when you set Read access to Only their own." We're on the June 2010 CU and it doesn't seem to be fixed, or perhaps I'm missing something? I've found others who have this issue post Feb 2010 CU (see http://sharepointalert.info/2010/07/email-when-ownership-is-assigned-item-level-permissions/) Notification works fine otherwise, so their's no email issues etc. Can anyone explain to me why this does not work? Cheers, Phil.

Sending Result Set as Email via Script task

Hello, I completely succeeded in creating a package that sends result set as Email. But the issue here is type of the connection I am using, right now using ADO.NET connection. But my lead wants to have OLDB connection in order to maintain uniformity across all packages. Requirement : querying a table having 3 fields, need to send this table content as an Email. Steps Following : Execute SQL task to store the Result set into a System.Object variable, here connection type using ADO.NET , but my lead wants it as OLDB. Script task: Using bellow code to load data from system.Object variable to a string variable Send mail Task : Using string variable ( which was populated in script task) as Message source in Send mail task . So everything working fine, getting proper email with bellow code in script task. But the issue is if I use OLDB connection type in Execute SQL task instead of ADO.NET Connection type, Script task is not working . Bellow script is throwing some error . Can anyone please provide script that works for OLDB connection type To load system.object variable to string variable Error Message in Script task ( if I use OLDB connection in Execute SQL task instead of Ado.NET) “Unable to cast COM object of type 'System.__ComObject' to class type 'System.Data.DataSet'. Instances of types that represent COM components cannot be cast to types that do not repr

How can I edit the link to the document in a Approval Task email?


With the 2010 out of the box Approval workflow, the emails and tasks work just great, however, when a user receives the email, the instructions look like this:


To complete this task:
2. Perform the specific activities required for this task.
3. Use the Open this task button to mark the task as completed. (If you cannot update this task, you might not have access to it.)


Currently, we are using a friendly url for our users, in order to access their SharePoint site.  The <LINKED DOCUMENT> when clicked on, gives them an error and doesn't take them to the actual document in the SharePoint site, because of the fact that we are using a different url name for the site.

If there any way I can edit this auto-generated email so that the links will always be to the friendly url of our SharePoint site with each document?


Thanks in advance!

Task notification integration win WSS 3.0 - where have I gone wrong?


I have set up a WSS 3.0 server running on Windows server 2005 r2 - fully patched.  I am trying to set the server up so that when a user is assigned a task within a SharePiont site it is added to their tasks in Outlook.  Is this possible?  Users get notifications if they are set up, but I can't see if there is any way of integrating with Outlook.

Can anyone help?

Thanks in advance.


EMail Link to task edit form



I have set up a work flow that creates approval tasks. I want the edit link sent to approvers in a email. What field i should use to get that ?




Email blast software or c# code to accomplish task


Looking for suggestions on email blast software or a way to write in c# something that we can query access database and send out individual emails using 3 seperate templates based on the users selection.

basically users have been signing up to receive an email later in the year.. there are 3 possible email templates that are designed and will be sent based on what the user selected. So when the time comes, we need to take and query the access database and send an email to the user with the template they picked.

I see alot of software packages, but cost more than what we can spend(no budget), so we need something simple and free that can be scheduled to send on certain day and time. Or if there are any tutorials on creating something to do this, doesnt need to be fancy, 



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend