When I use email related perl modules, do I need to care about operation systems?

There are differences between operating systems and these may affect you, depending on what you are doing and how you do it. You can read perlport for some initial guidance on portability and you should also read the platform specific documentation for your platforms of interest and release of perl. You can find the former from perl. The latter depends on your release - review your documentation to find it.

Many of the email related modules are quite independent of platform but not all of them. Even if the modules are platform independent your code may not be. It is best to be careful and well informed about this issue if you want to write portable code. You may want to use only pure Perl modules that don't execute other programs on your system. Otherwise, and no matter what you do, you will have to test your application at some point. Plan thorough tests, test early and test often. Don't do all your development on one platform before testing on your alternate platforms.

Do I need to think about whether or not I have an email server in my system?

If you want to exchange email with other systems (you probably do) then you will have to think about mail servers. Some perl modules may try to access local mail related software (e.g. sendmail on *nix platforms) or other resources that differ from platform to platform (e.g. mailboxes). You will have to consider the availability of mail servers, how you will use them and how they are configured to support your application. You will likely want some mail server to relay messages for you and configuration of the mail server will probably be necessary to allow this. You will also have to decide what you will do if a mail server is not available at the time you wish to access it. A local mail server may be more available than a remote one. In many cases I have installed a local mail server for this reason and to let the local mail server handle queueing and routing of messages.

I create and test my perl/cgi based web application on my Windows laptop and then port it to the external web host, like I guess many do. So I would prefer to have an email module which:

1) works on windows, unix and linux platforms without thinking about email server, etc.

When you stop thinking, your risk of unpleasant surprises increases dramatically.

2) since I want an easy way of transfering my application from my laptop to the webhost I would prefer to use the module that can be put to my local lib together with all my subs.

I don't understand what you are saying here. Sorry...


In reply to Re: 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.