Gunnar Hjalmarsson wrote:
I have changed the path to the full path concerning the files attachments. Still it doesn't work. Is it not got something to do with the fact that its called as part of CGI?Werner Otto wrote:
I have this script mentioned below. When I run it from command line: perl test.cgi all works as it should. When I run it from my browser it only writes the file displays the confirmation, but does NOT email my files.
<snip>
my $my_file_gif = 'logo.gif';
<snip>
my $my_file_zip = 'running.pdf';
<snip>
Any ideas?
I would try changing those to full paths. It's not advisable to rely on an assumption about the working directory. Optionally you can set the working directory with the chdir() function.
/ Gunnar
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>