$smtp = Net::SMTP->new('shaw.ca'); # connect to an 
> SMTP server
> >         $smtp->mail( '[EMAIL PROTECTED]' );    # use the sender's 
> > address here
> >         $smtp->to('[EMAIL PROTECTED]');        # recipient's address
> >         $smtp->data();                     # Start the mail
> > 
> > connection
> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > It kept giving me "Can't call method 'mail' on an undefined 
> > value at test1.pl line 4"
> > 
> > Does anyone have any idea how to fix this?  Or has anyone had 
> > a successful experience doing what I am trying to do?
> > 
> > Thanks.
> > 
> 
> try using $smtp->recipient instead of mail()

woops, scratch that. i misread something.
try a die statement when you intialize the ojbect
$smtp = Net::SMTP->new('shaw.ca') or die "blah, blah"; # connect
# looks like you may not be connecting

 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to