#!/bin/sh set -eu uid=$(id -u) # add header and send stdin to msmtp SMTP_REPSONSE=$({ \ echo -e "X-SITE-UID: mwp${uid}\r\nX-PRODUCT: MWP\r\nX-BRAND: GoDaddy"; cat - ; \ } | msmtp -t --read-envelope-from)