#!/bin/bash MAILFROM=$(cat ~/.host_mail) MAILTO=$(cat "$HOME/.admin_mail") SUBJECT=$1 cat | mailx -s "$SUBJECT" -r "$MAILFROM" "$MAILTO"