I have some Perl scripts in which I would like to utilize /usr/bin/mail to send e-mail. I've tried using /usr/bin/mail from the command line to send a test message to my yahoo address, and it fails. I imagine this is pretty basic stuff for a Unix sysadmin, but all I've ever been is a user. What do I need to do to use /usr/bin/mail to send mail?
the main thing you need is an open port 25. If it's open, then command line mail should work out of the box with no further preparation. it works on my work computer for example and I can send mail to my yahoo address from it.
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
using /usr/bin/mail
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.