SPUG: CPAN Mail::Mailer ...help!
Shamon22 at aol.com
Shamon22 at aol.com
Thu May 4 10:57:28 CDT 2000
Hello fellow SPUGers!
I am trying to get my Mail::Mailer CPAN modual to work. I have written a
script to take in an html form and (supposedly) pipe it out to another email
address.
Here is my script:
******************************************************
#!/usr/bin/perl
# cgi-bin/contact.cgi:Information sending program.
# TESTING --Contact.html(v2)
use Mail::Mailer;
$mailer = Mail::Mailer->new("sendmail");
$mailer->open({ From => $email,
To => $mailto,
Subject => $subject,
})
or die "Can't open: $!\n";
print $mailer $body;
$mailer->close();
*******************************************************
..and here is the error straight from the logs:
*******************************************************
[Wed May 3 08:06:01 2000] [error] malformed header from script. Bad
header=No recipient addresses found i: /home/httpd/cgi-bin/contact2.cgi
*******************************************************
If it is any help to you all, I based this script off of the one listed in
O'Reilly's "Perl Cookbook", pg.651.
-Garrett
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
Email to majordomo at pm.org: "action" spug-list your_address
More information about the spug-list
mailing list