>We have a system which uses WWIPStuff to programatically generate emails. The emails are allowed to, but are not required to have attachments.
I'm assuming the user account the scheduled task is running under has full rights to the temp directory, and if the temp directory is a network drive the temp directory is specified using a UNC instead of a mapped drive letter?
>
>The program is started each morning by the Task Manager and runs continually through the day. It uses a timer to check if there are any jobs to be processed. It has been working successfully for quite some time. We now have a problem.
>
>If the EXE is called manually (dbl-click in Explorer for example) everything runs correctly.
>
>However, when started by the Windows Task Scheduler, emails without attachements are processed correctly. The program has suddenly stopped sending emails which have attachments. The error message in the SendMail method of WWIPStuff is
>
>
Couldn't create temp file for encoding x:\sendemail\rlp.txt>
>The attachments are usually on a network drive. I've copied them into the directory where the program runs, but that did not have any effect.
>
>This program works just fine when initiated from Windows Explorer. It is only when called from the Task Scheduler that there are problems.
>
>Any insight will be greatly appreciated.
>
>Thanks to all............Rich
____________________________________
Don't Tread on Me
Overthrow the federal government NOW!
____________________________________