Just out of curiosity (since this is not a blocking point for us), but maybe someone has experienced this before:

We are using Mail::SendEasy to send mail from our application (Windows environment), which worked fine so far. By chance I found out that, if I use the module from the Windows command line, i.e. perl -we "use strict; use Mail::SendEasy;...", sending mail always fails and we get the error message

MAIL FROM error (500 .....: unknown command.)
If I put exactly the same Perl expression into a file and execute with perl -w myfile.pl, it works.

I now just would like to ask if someone, by chance, already has had a similar experience on Windows, or has some idea where this difference in behaviour comes from. Please - I do NOT want you to spend much time for thinking about this question! As I said, it is not so urgent (we don't intent to send mail "from the command line"), and if it needs to be done, I can always put together some "minimal example program" and put some additional logging into Mail::SendEasy to trace what is going on.
-- 
Ronald Fischer <ynnor@mm.st>

In reply to Send Mail works from Program, not from Windows command line by rovf

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.