I am having the requirement that the document library has a set of folders with office files and sendto column. We need to send the files to the person which is marked in sendto column every day at 1AM. How to implement this functionality using Sharepoint timer jobs?
You should create sharepoint solution with timer job definition included and override Execute method. Iterate through all items in the library and send email based on the column value.
- 已建议为答案 Paul Turner _ 2012年5月4日 7:50
here is a example of sending mail from Timer Job, : http://blogs.msdn.com/b/guruketepalli/archive/2012/01/23/sharepoint-2010-custom-timer-job-send-an-email.aspx
In the Execute method, get the document you want to send and put as attachment.
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
- 已标记为答案 Sally Tang 2012年5月14日 1:45
Create a Timer job to send email with document attachment from your set of folders.Take help from SharePoint 2010 Custom Timer Job - Send an Email.
After the time job deployment ,set run time from central admin as per your requirement .Go to Monitoring -> Review Job definition in central admin.
Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
Do you need to do this with Timer jobs?
You can do this without using out of the box features and wokflow in SharePoint Designer.
Open SharePoint Designer and create a List Workflow where you send email to user in the "Sendto" Column.
Access to Document Library Settings and select "Information management policy settings" > select the content Type "Document" > Activate "Enable Retention" and create "add a retention page", there you define 1 day and select the action for your Workflow created in SharePoint designer then define a recurrence of 1 day to be activated and do the job...
- 已编辑 André LageMVP 2012年5月4日 8:45
You should create sharepoint solution with timer job definition included and override Execute method.
See the example of below link.