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

Discussion in 'Perl Misc' started by Just Me, Nov 12, 2003.

  1. Just Me

    Just Me Guest

    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.
     
    Just Me, Nov 12, 2003
    #1
    1. Advertisements

  2. Gunnar Hjalmarsson, Nov 12, 2003
    #2
    1. Advertisements

  3. Just Me

    Jim Mozley Guest

    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
     
    Jim Mozley, Nov 13, 2003
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    2
    Views:
    1,239
    dave wanta
    Jul 11, 2003
  2. Dave Mills [MVP]

    Re: SMTP Email Address - Exchange 2000 - ASP.NET

    Dave Mills [MVP], Apr 1, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    649
  3. Steve Richter

    should windows 2000 smtp service work for me?

    Steve Richter, Apr 19, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    393
    Steve Richter
    Apr 19, 2005
  4. Replies:
    3
    Views:
    1,343
    Roedy Green
    Jan 24, 2006
  5. C Did
    Replies:
    3
    Views:
    4,306
    Chris Lithgow
    Jun 20, 2006
  6. Alex Hunsley
    Replies:
    4
    Views:
    4,538
    Tim Williams (gmail)
    Jun 29, 2004
  7. Copelandia Cyanescens

    smtplib.SMTP "no attributes SMTP"

    Copelandia Cyanescens, Jul 31, 2004, in forum: Python
    Replies:
    2
    Views:
    2,149
    Copelandia Cyanescens
    Jul 31, 2004
  8. Jeff Dege
    Replies:
    2
    Views:
    840
    Jeff Dege
    Jan 31, 2008
Loading...