Subject header and Mail::Mailer module (Perl)

by David Mintz <mambomintz(at)yahoo.com>

 Date:  Sat, 9 Sep 2000 13:38:54 -0700 (PDT)
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original

Does anyone know how to get Mail::Mailer to send a
Subject:  header? When I do the following, the message
has no subject, instead it looks just like this:

Date: Sat, 9 Sep 2000 15:51:37 -0400 (EDT)
From: David Mintz <dmintz(at)emra.pair.com>
To: dmintz(at)panix.com

~s Testing mail\n\n


It is Sat Sep  9 15:51:37 2000 and this is a test of
Mail::Mailer         

##########################################

now here's my code, which stolen practically chapter
and verse from the synopsis on CPAN:

use Mail::Mailer;
use strict;
my %headers = ( From=>'dmintz(at)emra.pair.com',
                To=>'dmintz(at)panix.com',
                Subject=>'Testing mailer',
         );
my $mailer = new Mail::Mailer;
$mailer->open(\%headers);
print $mailer "It's " . scalar localtime() . " and
this is a test.";
$mailer->close;
print "OK\n";

##########################################

many thanks,

David Mintz
Spanish Interpreter, US District Court
Southern District of New York
Web Design & Hosting http://dmintzweb.com/
Personal http://panix.com/~dmintz/
                  

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA