LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Perl Net::SMTP::TLS (using downloaded modules) (http://www.linuxquestions.org/questions/programming-9/perl-net-smtp-tls-using-downloaded-modules-572932/)

sadarax 07-28-2007 06:46 AM

(SOLVED) Perl Net::SMTP::TLS (using downloaded modules)
 
I am trying to write a perl script to send email using SMTP authentication. I am still new to Perl so I do not know how to do everything yet. I am using Debian Stable and Ubunutu 7.04.

When I just use Net::SMTP, the script works sometimes, but not all the time. I would like to use this TLS module to do real authentication with a smtp-server/port/login/password:

http://search.cpan.org/author/AWESTH...et/SMTP/TLS.pm

In my script, if I try to use:

Code:

  use Net::SMTP::TLS;
It complains that the TLS module is not available. I would like to know how to download the source for the TLS module and how to either install it, or use it locally with my script. Direct link to TLS module here: http://search.cpan.org/src/AWESTHOLM...et/SMTP/TLS.pm

Thanks for any help in advance

EDIT: This issue has been solved. Thanks.

bathory 07-28-2007 09:48 AM

You can d/l it from here
To install it run:
Code:

perl Makefile.PL
make
make install (as root)


Tinkster 07-28-2007 04:32 PM

Or you can have the CPAN module install it (and follow all
dependencies for you, if any).
Code:

perl -MCPAN -e 'install Net::SMTP::TLS'


Cheers,
Tink


All times are GMT -5. The time now is 10:42 AM.