At 9:31 -0800 12/23/99, owner-macperl-webcgi@macperl.org wrote: >I'm having a problem that I hope someone out there can help me with. I'm >trying to use a "sendmail" type program called "Windmail" with Perl on >Windows 95. I'm getting a Bad Command error with the first line of the >following code: > >open(MAIL,"|windmail -t"); >print MAIL "To: salmo004\@tc.umn.edu \n"; >print MAIL "From: tsalmon\@cce.umn.edu \n"; >print MAIL "Subject: Hello World \n\n"; >print MAIL "This is the easiest way to implement WindMail \n"; >print MAIL "in a CGI script written in Perl.\n"; ># The next line is very important >print MAIL "\n.\n"; >close(MAIL); > >Can anyone help me with the first line in the above code? Why isn't this >working? Can the program windmail be located in the current working directory? You might try a full path to where you know it is. You might also wish to join the mailing list at least long enough to see the answer conveniently...perhaps you already have. --John -- John Baxter jwblist@olympus.net Port Ludlow, WA, USA # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org