Browse Source

use mutt if installed

pull/2259/head
Honza Hommer 6 years ago
parent
commit
10801bfb25
No known key found for this signature in database GPG Key ID: 5EBDE8E7E1A00ACA
  1. 5
      notify/mail.sh

5
notify/mail.sh

@ -15,6 +15,8 @@ mail_send() {
if _exists "sendmail"; then
_MAIL_BIN="sendmail"
elif _exists "mutt"; then
_MAIL_BIN="mutt"
elif _exists "mail"; then
_MAIL_BIN="mail"
else
@ -55,6 +57,9 @@ _mail_send() {
sendmail)
"$_MAIL_BIN" -f "$MAIL_FROM" "$MAIL_TO"
;;
mutt)
"$_MAIL_BIN" -s "$subject" -e "my_hdr From:$MAIL_FROM" -e "my_hdr Content-Type:$contenttype" "$MAIL_TO"
;;
mail)
"$_MAIL_BIN" -s "$subject" -a "From:$MAIL_FROM" -a "Content-Type:$contenttype" "$MAIL_TO"
;;

Loading…
Cancel
Save