

- #Mac os x shell script send email using perl via gmail how to#
- #Mac os x shell script send email using perl via gmail mac os x#
- #Mac os x shell script send email using perl via gmail install#
- #Mac os x shell script send email using perl via gmail download#

The core fundamentals of AppleScript are described in AppleScript Language Guide, as well as in numerous third-party books. While the AppleScript scripting language uses an English-like terminology which may appear simple, it is a rich, object-oriented language, capable of performing complicated programming tasks. It’s relatively easy to learn in relation to other scripting and programming languages, has been around since System 7.1, and has been widely adopted in both enterprise and personal workflows. Python and Perl are other examples of scripting languages.ĪppleScript is a mature scripting language developed by Apple. Scripting is a better choice for performing advanced, branching, or complex tasks. Automator is great for performing simple tasks involving a small number of sequential steps or apps. Because Automator uses preconceived actions and operates in a linear manner, it’s more limited in functionality than scripting. Automator doesn’t require you to write any code, but can be extended through scripting.
#Mac os x shell script send email using perl via gmail how to#
Here is an example of how to use the command: % mail_files -t -s subject -b attachedFileNameEnter your message texthere in as many lines as necessarywith control-D at the end.Edit the script for a detailed description of all the options in the comments.OS X also includes Automator, an app for building workflows that run prebuilt, configurable actions to perform tasks in apps and throughout the operating system. Enter the mail_files command with no arguments for a short description of the options. If you just installed the script into a directory in your path, be sure to enter the rehash command to make sure that your shell knows it is there. You can delete the MIME-Base64-3.00 directory if you like.
#Mac os x shell script send email using perl via gmail install#
#Mac os x shell script send email using perl via gmail download#
Download the MIME::Base64 package from CPAN.
#Mac os x shell script send email using perl via gmail mac os x#
Installing the MIME::Base64 package on Mac OS X 10.2.x

The shell script requires that your Mac be configured as a mail server that can send mail using the sendmail command (Mac OS X 10.3 uses postfix, but it still has a sendmail command for compatibility purposes). My modified Mac OS X version is also available for download.

(10.2 users must also install a perl package.) The original script is by Dave Wotton. Thanks to Google, I found a shell script to do just that, and it only requires one modification (detailed below) to work on Mac OS X 10.3. From time to time I need to send an E-mail with MIME attachments from the command line while logged on via an SSH connection.
