For the notice

How can i give two days prior notice to the user that some task is pending with him .

and if the task is not completed within that time frame a notice will be going to the next user .

can anyone give the code for this …

Subject: for the notice

create a view that shows all documents that have a target date of 2 days from now or less, and that do not have a field that shows completed.Then you need to write an agent that looks at this view daily and emails a notice for every document it finds in this view if one has not been sent already.

Simple