>We have a system which uses WWIPStuff to programatically generate emails. The emails are allowed to, but are not required to have attachments.
>
>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
I guess you don't have config.fpw with TEMP files location build in in the executable. You need to specify existing temp directory, better something like c:\Temp
This is just a SWAG, though.
If it's not broken, fix it until it is.
My Blog