You can install any module (or at least the vast majority, I suppose there might be some with hard-coded path nonsense) anywhere you like.

Installation is often more than just copying files. Some modules check for dependencies, compile and link code and configure themselves at installation. If you just copy the installed files you skip all these steps. If you are moving to a different platform this is more likely to be a problem.

You can gain some insight into what the issues might be for a particular module by looking at how it is built and installed. If all that is done is copy .pm files into place, then you can just copy the files yourself. If more is done you will have to think carefully about the implications of skipping those steps when you copy the files yourself.

What goes in the message is one thing. How you deliver it is another. If the body of the message is plain text, preparing it is easy. You still need to send it, either to a local or remote mail server, unless you are writing it directly to a local mailbox. There are perl modules that deliver via SMTP protocol without use of an external program.

I have used Net::SMTP for simple cases in the past but there are many others. A search of CPAN for smtp yields many results.


In reply to Re^3: Questions about sending e-mails by ig
in thread Questions about sending e-mails by vit

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.