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

In reply to Send a mail in Win32 with Gmail by saintex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.