On Tuesday, June 3, 2003 20:24 -0700 "Richard E. Adams" <[EMAIL PROTECTED]> wrote:

I am working through the exercises in Chapter 1 of Learning Perl, Second
Edition, O'Reilly publishers.  I am using MacOS X (10.1.5), and Perl,
v.5.6.0.  An excerpt from one of the author's programs shows the
following three lines:

open MAIL, "|mail YOUR_ADDRESS_HERE";
print MAIL "bad news: $someone guessed $someguess\n";
close MAIL;

($someone and $someguess have been assigned appropriate values prior to
the above three lines.)

I suspect the above works fine in a typical UNIX environment, e.g.,

open MAIL, "|mail [EMAIL PROTECTED]";
print MAIL "bad news: $someone guessed $someguess\n";
close MAIL;

How can I get the above to work on my Macintosh?  (I don't get an error
message, nor do I receive an email.)  Any help would be greatly
appreciated.

To send mail, you need two components. A mail client (aka a mail user agent or MUA) and an SMTP program (aka a mail transport agent or MTA). The 'mail' program is an MUA. It passes messages to a local MTA for delivery. IIRC on OS X the MTA (sendmail) is installed, but not configured, so 'mail' successfully hands the message over to sendmail, which then neither knows what to do with it, nor knows how to warn you of the fact.


--
David Cantrell

    Beekeeping is like being a lion tamer, but
    with smaller lions, and more of them.
          -- arp

Reply via email to