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

[MacPerl-WebCGI] Windmail & Perl



>From macperl@cfcl.com  Thu Dec 23 09:31:05 1999 with sincere apologies
>for the delay - vlb
Date: Thu, 23 Dec 1999 11:30:09 -0600
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

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