in reply to Waiting for file creation

I've used blat, and I would recommend using a module such as Mail::Sender instead. We were using blat through a CGI and blat wouldn't always terminate correctly, and blats would eventually build up and slow/crash the server.

Mail::Sender doesn't make you create a temporary file, which is more convenient(at least for me).

If you are forced to use blat, does $filename contain the full windows path(ie. c:\temp\msg.txt). If not, I think that could be the reason that it isn't finding it, because blat may not be looking in the same directories as perl does.

Replies are listed 'Best First'.
Re: Re: Waiting for file creation
by Anonymous Monk on Jun 03, 2003 at 18:58 UTC
    I am not running the script via CGI and Blat works well for my needs (though thanks for the suggestion). $filename does not contain the full path, but I've testing running the code with $filename set to a file that exists prior to running the script and it works fine (Blat looks in the directory from which the script was run).