Hi all,

I've made a script that loads a file and announce me by mail about this.
The problem is with the mailing.

I've tried to make the script to work with an SMTP server if the script is
ran under Windows and with sendmail
also if it runs under Unix.

The important code with problem is:

if ($^O =~ /MSWin/i) {
print "The OS is: $^O";
#This line is not printed because the OS is Linux but the following line has
problems
use Net::SMTP;

The problem is that the script runs under Linux and there is no Net::SMTP
module installed. The server is not mine, so ...

I thought this prevent giving me an error because I've tested not to be
Windows.

Even though the OS is Linux, it complains that there is no Net::SMTP module
installed and the script breaks.

If I comment that part (what is under if(..) { and } the script works fine

How can I avoid Linux complaining that there is no Net::SMTP module
installed even though I've tested not  to be necessary?

Thank you very much.
I hope it is possible.


Teddy,
[EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to