Using sendmail from bash script for multiple recipients

#!/bin/sh
recipients='info@odesk.by'
subject='vh36 test sendmail'
from='redmine@redmine.odesk.by'
/usr/sbin/sendmail "$recipients" <<EOF
subject:$subject
from:$from
vh36 test sendmail
EOF
Scroll to top