I've developed an Access 2000 subroutine for sending e-mail by SendObject function, using MAPI and Outlook Express 6 as mapi client.
Environment is Windows 2000 Server.
My target is sending e-mail nightly, so I created a macro launching subrouting and I wrapped all in a .bat file, which has been scheduled for running every night.
The scheduled task has executed as an user with "local administrator" profile.
This user has a "default account" in Outlook express that don't need any interactive input for sending e-mail
This procedure runs fine if the user executing task is logged on Windows 2000 console.
Instead, if no user is logged on or another user is logged on console, task remains in "running" state, without sending e-mail.
I try a lot of experiment (as creating correct Outlook express "default account" for the other users and also for "default user" of Windows 2000) but nothing: always hanged in "running" stated, if conditions above are not respected >:-<.
Anyone could help me?
Environment is Windows 2000 Server.
My target is sending e-mail nightly, so I created a macro launching subrouting and I wrapped all in a .bat file, which has been scheduled for running every night.
The scheduled task has executed as an user with "local administrator" profile.
This user has a "default account" in Outlook express that don't need any interactive input for sending e-mail
This procedure runs fine if the user executing task is logged on Windows 2000 console.
Instead, if no user is logged on or another user is logged on console, task remains in "running" state, without sending e-mail.
I try a lot of experiment (as creating correct Outlook express "default account" for the other users and also for "default user" of Windows 2000) but nothing: always hanged in "running" stated, if conditions above are not respected >:-<.
Anyone could help me?