Command Line Interface (emate)

MailMate includes a shell command named emate which is located inside the MailMate application bundle. It can be used to create and, optionally, send emails directly from the command line.

It is recommended to make a symbolic link to emate and never make a copy. This ensures that new versions of MailMate automatically updates the emate command as well. Make sure ~/bin/ exists and paste the following in the Terminal:

ln -s /Applications/MailMate.app/Contents/Resources/emate ~/bin/emate

This is the current output when asking emate for --help:

usage: emate mailto [-h] [-v] [-f FROM] [-t TO] [-c CC] [-b BCC] [-s SUBJECT]
                    [--send-now]
                    ...

MailMate command line interface.

positional arguments:
  attachments

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         verbose output
  -f FROM, --from FROM  email address for the sender
  -t TO, --to TO        email address to send to
  -c CC, --cc CC        email addresses to add to cc
  -b BCC, --bcc BCC     email address to add to bcc
  -s SUBJECT, --subject SUBJECT
                        subject for email
  --send-now            send email immediately