

They have examples of configuration files in their documentation. If you don't want to use gGoogle's server, as long as you have access to some SMTP server, it should work.Ī very lightweight program that makes it easy to do so is msmtp. If you have a Gmail account for example, you can use Google's servers to send email using SMTP. Sendmail and even postfix may be too big to install if all you want to do is to send a few emails from your scripts.
#WHAT DEFAULT PROGRAM INSTALLED ON MAC OS X HANDLES EMAIL HOW TO#
Update: I've found the -bs option for Sendmail which seems to be what I need, but I'm at a loss of how to specify settings.Īlso, to clarify, the reason I'd like to specify SMTP settings is that mails from localhost on port 25 sent out via Postfix would be blocked by most corporate firewalls, but if I specify the server and an alternate port I won't run into that problem.

Is it possible to do this in the script so it will run on a base Mac OS X install of 10.5. The catch is I would like to deploy this script on multiple computers (10.5 and 10.6) without enabling Postfix on the computer.

I figure to get around those shortcomings I should send the mail directly from the script by entering SMTP settings, address to send to, etc.
