Hi,
I have installed your feature and can create timer jobs, but they do not seem to be doing anything.
Here is my code:
And here are the details for the job:
Name: Test Timer Job
Status: Enabled
DaysToRun: Everyday
HoursToRun: Set to 6PM
Assembly: TestTimerJobAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5
Class: TestTimerJobAssembly.TimerJobs.TimerJobClass
Method: Execute
ConstructorParameter1: http://ne-per-md1 (name of our sharepoint dev server)
ConstructorParameter2: /
The timer does run, as the LastRunDateTime is updated, but no eMail is sent. (I have used this email code in other places so know that it works)
Can you offer any advice?
Thanks in advance,
Sandy
I have installed your feature and can create timer jobs, but they do not seem to be doing anything.
Here is my code:
Imports Microsoft.SharePoint
Imports Microsoft.SharePoint.Utilities
Namespace TestTimerJobAssembly.TimerJobs
PublicClass TimerJobClass
Dim site As SPSite
Dim web As SPWeb
PublicSub TestTimerSchedule(ByVal strURL AsString, ByVal webURL AsString)
site = New SPSite(strURL)
web = site.OpenWeb(webURL)
EndSub
PublicSub Execute()
SPUtility.SendEmail(web, False, False, "<my email address>", "Test Timer Job", "It Worked !!!")
EndSub
EndClass
EndNamespace
And here are the details for the job:
Name: Test Timer Job
Status: Enabled
DaysToRun: Everyday
HoursToRun: Set to 6PM
Assembly: TestTimerJobAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5
Class: TestTimerJobAssembly.TimerJobs.TimerJobClass
Method: Execute
ConstructorParameter1: http://ne-per-md1 (name of our sharepoint dev server)
ConstructorParameter2: /
The timer does run, as the LastRunDateTime is updated, but no eMail is sent. (I have used this email code in other places so know that it works)
Can you offer any advice?
Thanks in advance,
Sandy