Hello Monks,
It seems to me there is not a
really simple way to send a mail through Gmail in Perl, using a windows platform (I'm a little suprised about that).
I'm writing a little program, that copy and save some files (a simple backup operation on some important files).
So I thought to send reports in emails to system admin with success or failure.
because that program runs on various computers (with both linux e windows desktops), on Win32 I would like to use a Perl distribution easy-to-install on windows.
So I used ActivestatePerl.
My first attempt was with:
use MIME::Lite;
use Net:SMTP;
No problem with a linuxbox, I ported that code on Win32 with ActiveState Perl, and I found a lot of problems.
First of all, there is not
Net::SMTP:TLS on ActiveState distribution.
I tried to install it, but I will need OpenSSL and more stuff.
I installed it, but I have a DLL error in OpenSSL libaries.
So I tried with Email-Send package,
but with same result (need TLS).
Moreover there is not in ActiveState ppms repository the pacakge with Email-Send-Gmail: there is in other ppm distributions, but it has the same Email-Send and Net-SMTP-TLS issue.
Finally I tried with Mail::Sendmail ,
but only the developer version (not the main version) uses SMTP Authentication
(I mean this one:
http://search.cpan.org/~mivkovic/Mail-Sendmail-0.79_16/ )
So that is my question: how can I install Sendmail-0.79_16 on ActiveState distribution of Perl in a simple way (I have already tried to put it in a /Perl/Site/lib/Mail directory andI tried to link it through use , but without success).
I need to install it on 5/6 computers and a really hard installation is not a good idea.
Or... someone knows a simple way to send an email trough Gmail with Windows?
Sorry for my English (I'm not a natural English speaker, so maybe I have some errors on my text).
Thank you for your answers