Good question. Where do you define the smtp server name and sender? Most smtp servers don't allow mail with no sender.
-Pasi- "Teresa Tindell" <[EMAIL PROTECTED]> kirjoitti viestiss� 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),! > >
