Did you define following TaskConfig parameters?

d ##class(%SYSTEM.TaskConfig).UpdateData("MailServer",yourMailServer)
d ##class(%SYSTEM.TaskConfig).UpdateData("MailTimeZone",yourMailTimeZone)
d ##class(%SYSTEM.TaskConfig).UpdateData("MailReplyTo",yourMailReplyTo)

Dan


"Teresa Tindell" <[EMAIL PROTECTED]> p��e v diskusn�m p��sp�vku
news:[EMAIL PROTECTED]
> I am trying to use the emailonerror, emailoncompletion and emailoutput
> properties in the task class.  I dont get an email.  Any suggestions?  The
> outputfile works.  This is running on a unix platform.  Does that matter?
>
> Code:
>  s x=##Class(%SYSTEM.Task).%New()
>  s x.Name="Test Task"
>  s x.ExecuteCode="d TEST^StartScheduler"
>  S x.NameSpace="ONEFAMILY"
>
>  s x.EmailOnCompletion = "[EMAIL PROTECTED]"
> s x.EmailOnError = "[EMAIL PROTECTED]"
>  s x.EmailOutput = 1
>  s x.DailyFrequency=0
>  s x.DailyFrequencyTime=""
>  s x.DailyIncrement=""
>  s x.DailyStartTime=($P($H,",",2)) + 7 ;$ZTIMEH("17:43:00.974",1)
>  s x.DailyEndTime=""
>  s x.OpenOutputFile = 1
>  s x.OutputDirectory = "/data/dcache/adhoc/"
>  s x.OutputFilename = "testscheduler2.log"
>  s rc=x.%Save()
>  q
>
> TEST
>  w "test scheduler",!
>  w "Start Time:  "_$ZDATETIME($H,7),!
>
>



Reply via email to