Net::SMTP on Windows 2000. I'm stuck!

J

Just Me

I'm new to Perl and am trying to learn how this whole module thing works.
I've Read the docs and the help files, and think I have installed libnet
v1.17 by executing makefile.pl It went through, I set appropriate hosts
(particulary SMTP which is my interest).

I'm using ActivePerl 5.6. Everything I read says I need to "use Net::SMTP"
but use is not a valid command from Windows, and in PPM it is an unknown or
ambiguous.

I can not for the life of me figgure out how to "Use" the Net::SMTP module,
or the Net-SMTP-Server-Clinet2 module from Windows, PPM or from within
another script. Where should this "use" command be entered?

I'm sure it is a syntax thing that I'm just overlooking, but any advise is
appreciated.
 
J

Jim Mozley

Just Me wrote:

I'm using ActivePerl 5.6. Everything I read says I need to "use Net::SMTP"
but use is not a valid command from Windows, and in PPM it is an unknown or
ambiguous.

I can not for the life of me figgure out how to "Use" the Net::SMTP module,
or the Net-SMTP-Server-Clinet2 module from Windows, PPM or from within
another script. Where should this "use" command be entered?

You use the module within your script so you have:

use Net::SMTP;

near the beginning of you script.

If you need to get the module on your windows machine then from the dos
command line type ppm to get into the perl package manager and then
search smtp to find the exact name (probably net-smtp), then install
net-smtp.

The new learning perl objects, references & modules book from O'Reilly
is worth getting for learning this stuff.

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Net::SMTP errors 3
Net::SMTP problem 1
Net::SMTP connection problems 4
net/smtp 6
Net::SMTP 0
Net::Telnet and SMTP 13
connect to localhost failed error with Mail::Sendmail on Windows 10
prob send and NET::SMTP 2

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top