[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] BOUNCE macperl-webcgi@macperl.org: Non-member submission from ["Tom Salmon" <tsalmon@cce7000a.cce.umn.edu>]



>From macperl@cfcl.com  Thu Dec 23 09:31:05 1999
X-Sent-To: <macperl-webcgi@macperl.org>
Received: from mhub1.tc.umn.edu (IDENT:0@mhub1.tc.umn.edu [160.94.5.41])
	by cfcl.com (8.9.2/8.9.2) with ESMTP id JAA14019
	for <macperl-webcgi@macperl.org>; Thu, 23 Dec 1999 09:31:04 -0800 (PST)
Received: from cce7000a.cce.umn.edu by mhub1.tc.umn.edu with ESMTP for macperl-webcgi@macperl.org; Thu, 23 Dec 1999 11:29:44 -0600
Received: from [134.84.224.28] (x84-224-28.unreg.umn.edu [134.84.224.28]) by mail.uc.umn.edu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0)
	id Y31NKHH6; Thu, 23 Dec 1999 11:26:58 -0600
X-Mailer: Microsoft Outlook Express Macintosh Edition - 4.5 (0410)
Date: Thu, 23 Dec 1999 11:30:09 -0600
Subject: Windmail & Perl
From: "Tom Salmon" <tsalmon@cce7000a.cce.umn.edu>
To: macperl-webcgi@macperl.org
Mime-version: 1.0
X-Priority: 3
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Message-Id: <iss.7362.38625c08.d35bd.1@mhub1.tc.umn.edu>

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?

Thanks in advance.



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org