SPUG: CPAN Mail::Mailer ...help!
Lauren Smith
LaurenS at bsquare.com
Thu May 4 12:26:47 CDT 2000
> #!/usr/bin/perl
I like having the '-w' at the end of that line.
>
> # 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
> *******************************************************
This may be a silly question, but have you assigned values to $email,
$mailto, and $subject?
Lauren
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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