[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Problems finding



On Wed, Aug 18, 1999 at 09:15:34AM +1000, Charles Cave wrote:
} I'm writing a small script to do an email-merge using the SMTP module
} to send the mail. (No, I am NOT doing spam mail but corresponding with
} people on my Creativity Web who have registered as a creativity consultant).
} 
} When I run this code (from MPPE book), I get a message saying that
} the Net::/SMTP or Net/SMTP module is not found.
} 
} #!perl
} use strict;
} use Net::SMTP;
} use Mac::InternetConfig;
} my($smtp, $email, @emails, $subject, $message); 
} $smtp= Net::SMTP->new();

Generally one puts the mailhost as the argument to new:

Net::SMTP->new("a.machine.you.can.relay.through");

But if you have a mailhost in your Net::Config (which generally means that
you have one in Internet Config), you should be OK.  This won't cause your
problem, anyway.
   
} 
} <snip>
}  
} Rechecking MPPE, mention is made of "libnet" being PART OF THE STANDARD
} DISTRIBUTION. I have a 68040 Mac with System 7.1 and I installed the basic
} Perl + the bigapp Perl, so what have I done wrong?
} 
} 
} >From MPPE:
}  
} " libnetis the common name for a group of Perl modules that support Internet
} networking. It includes modules for FTP (file transfer), POP3 (receiving
} email), SMTP (sending email), NNTP (accessing USENET news), etc. These
} modules are included with the MacPerl standard distribution. For informa-
} tion on updates, see the MacPerl Pages ( www.ptf.com/macperl)."
} 
} I looked at www.ptf.com/macperl but didnt see a referenec to libperl.
} 
} 
} What should I do next?

You've forgotten how to use File Find/Sherlock?  You're looking for a
file named SMTP.pm on your drive, specificially inside a folder called
Net in one of the folders you've told MacPerl to search when looking
for libraries.

} 
} Thanks,
} Charles Cave
} charles@mpx.com.au 

-- 
Paul Schinder
schinder@pobox.com

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org