jbc
12-22-2005, 12:47 PM
Afaik, yes, you need Mail Transfer Agent running on your machine in order to send mail from the command line. This could be the default Postfix installation, or it could be any MTA you care to install (fink or darwinports are handy for this).
If you need more options than the mail command provides, you can install an alternate command-line mailer or a command-line mail client. I have exim + mutt set up on my system, and they allow me to automate creating and sending fairly complex emails (with attachments) via shell scripts quite nicely.
It may be possible to set up an email client like mutt to send mail without an MTA installed; I'm not sure, I've never tried it!
If you need more options than the mail command provides, you can install an alternate command-line mailer or a command-line mail client. I have exim + mutt set up on my system, and they allow me to automate creating and sending fairly complex emails (with attachments) via shell scripts quite nicely.
It may be possible to set up an email client like mutt to send mail without an MTA installed; I'm not sure, I've never tried it!
