On Fri, May 11, 2001 at 01:01:31PM +0100, Claire Downes wrote:
: Casey,
:
: Thanks for your prompt reply to my query.
: The code snippet looks particularly useful.
:
: However, I have found the problem. Although the mailing was the last thing
: it does in the code, the mailer seemed to be sending the text file before
: it had finished creating the text file.
That leads me to ask the questions: Are you close()ing your file
before you execute 'smtpmail'?
Sure, Perl will close your file for you when your program is finished
executing, but it is always good practice to close it right when
you're finished with it.
Casey West
--
Shooting yourself in the foot with Pascal
The compiler won't let you shoot yourself in the foot.