LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-28-2007, 05:46 AM   #1
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
(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.

Last edited by sadarax; 07-28-2007 at 10:24 PM.
 
Old 07-28-2007, 08:48 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,906

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
You can d/l it from here
To install it run:
Code:
perl Makefile.PL
make
make install (as root)
 
Old 07-28-2007, 03:32 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,973
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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
 
  


Reply

Tags
authentication, email, mail, modules, perl, smtp, tls


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install Pear Net/SMTP, Pear Log and Pear DB modules cccc Debian 0 02-26-2007 08:33 AM
Authentication(auto/Net/SMTP/auth.al) in QNX(sendmail uing perl script) kuttylinux Programming 1 09-20-2006 12:58 AM
Postfix SMTP AUTH (and TLS) HOWTO tommytomato Linux - General 2 05-24-2006 10:00 AM
Postfix With SMTP-AUTH And TLS carlainz Linux - Software 0 05-21-2006 03:13 AM
Debian Exim4 SMTP Auth TLS? shaun_bakker Linux - Software 1 06-30-2005 11:04 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration