From: "Moonlit Submit" <[EMAIL PROTECTED]> > Hi, > Now I'm getting this error: > Content-type: text/html > Software error: > Server error: 503 5.0.0 Need RCPT (recipient) > > How do I fix that?
Well, first ... I'd recomend using some custom function instead of die() to report errors. Something like: sub Die { my $error = join $, , @_; print <<"*END*"; Content-type: text/html <HTML><h1 align=center>ERROR</h1> <p align=center>$error</p> *END* exit(); } Of course you'd want to make it look nicer, but you get the idea. Second ... > >use Mail::Sender; > >my $sender = new Mail::Sender { > > smtp => 'relay.moonlitsubmithosting.com' > >}; > >die "Cannot create Mail::Sender object : $Mail::Sender::Error\n" > > unless ref $sender; > > > >$sender->MailMsg({ > > To => $mlist, .... are you sure $mlist actualy contains anything? This looks as if the $mlist variable was defined, but did not contain any address or started with a newline or something like that. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]