#!/bin/sh -e printf "Hi\n" | makemime \ -a "Subject: here's a subject" \ -a "From: me@example.com" \ -c text/plain | sendmail \ -H 'openssl s_client -quiet -tls1 -connect smtp.example.com:465' \ -f me@example.com \ -au'me@example.com' \ -ap'mypassword' \ -v \ you@example.com