MAPI will not work with services running as local system because these services get loaded before Network connections are setup, and thus it prevents MAPI from working properly. You should use SMTP interface in such cases. : I am using microsoft Outlook on my server. : I am trying to use MAPI interface to our mail system with 24x7 as a service. : The 24X7 job is quite simple once a file is detected, a notification mail is : send and the file is : deleted : I believe that the files containing the "Microcoft Outlook " mail : profile configuration : for "system" is lacking. Do you know which file is accessed in : order to retrieve Internet mail "properties" : NTUSER.DAT? : You can see from the log below that "my 24X7" works correctly when : I don't use 24X7 as a : service. : When I take the same script with 24x7 as a service, I get the message : "Sending mail failed: Logon Failed!" : MY 24X7 LOG: User is "system" as a service KO : 18/09/00 18:01:27 1 4 send mail only by MAPI Semaphore file(s) : C:\mscopes\aa.txt found. : 18/09/00 18:01:27 0 4 send mail only by MAPI Job started. : 18/09/00 18:01:30 1 4 send mail only by MAPI Sending mail failed: Logon : Failed! : 18/09/00 18:01:33 0 4 send mail only by MAPI Job finished. : 18/09/00 18:04:33 0 0 24x7 Scheduler [24x7 service] 24x7 Scheduler : terminating... : 18/09/00 18:04:52 0 0 24x7 Scheduler 24x7 Scheduler starting... : 18/09/00 18:09:06 0 0 24x7 Scheduler 24x7 Scheduler terminating... : SCRIPT TESTED BEFORE AS "NOT A SERVICE" OK : 18/09/00 18:09:15 0 0 24x7 Scheduler 24x7 Scheduler starting... : 18/09/00 18:10:13 1 4 send mail only by MAPI Semaphore file(s) : C:\mscopes\aa.txt found. : 18/09/00 18:10:13 0 4 send mail only by MAPI Job started. : 18/09/00 18:10:28 0 4 send mail only by MAPI Start message sent. : 18/09/00 18:10:32 0 4 send mail only by MAPI Job finished. : user "a local user" and : RESULT WHEN USED AS A SERVICE KO : 18/09/00 18:16:09 0 0 24x7 Scheduler [24x7 service] 24x7 Scheduler : starting... : 18/09/00 18:20:40 1 4 send mail only by MAPI Semaphore file(s) : C:\mscopes\aa.txt found. : 18/09/00 18:20:40 0 4 send mail only by MAPI Job started. : 18/09/00 18:20:43 1 4 send mail only by MAPI Sending mail failed: Logon : Failed!
|