SPUG: CPAN Mail::Mailer ...help!

Dean Hudson dean at ero.com
Thu May 4 12:56:12 CDT 2000


On Thu, 4 May 2000 Shamon22 at aol.com wrote:

> 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();

[...]

> *******************************************************
> [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
> *******************************************************

Looks fishy. Try debugging your cgi to make sure the variables are being
populated properly from the form. You may want to try piping into sendmail
directly (also on the same page of the Cookbook, I believe) to see if you
get the same error.

dean.
--
my $email = qr{ dean(h)?@(?(1)verio\.net    # @ work if h
                            | ero\.com) }x; # other


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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