mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-17 11:51:43 +00:00
use mutt if installed
This commit is contained in:
parent
a89a62071b
commit
10801bfb25
@ -15,6 +15,8 @@ mail_send() {
|
|||||||
|
|
||||||
if _exists "sendmail"; then
|
if _exists "sendmail"; then
|
||||||
_MAIL_BIN="sendmail"
|
_MAIL_BIN="sendmail"
|
||||||
|
elif _exists "mutt"; then
|
||||||
|
_MAIL_BIN="mutt"
|
||||||
elif _exists "mail"; then
|
elif _exists "mail"; then
|
||||||
_MAIL_BIN="mail"
|
_MAIL_BIN="mail"
|
||||||
else
|
else
|
||||||
@ -55,6 +57,9 @@ _mail_send() {
|
|||||||
sendmail)
|
sendmail)
|
||||||
"$_MAIL_BIN" -f "$MAIL_FROM" "$MAIL_TO"
|
"$_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)
|
||||||
"$_MAIL_BIN" -s "$subject" -a "From:$MAIL_FROM" -a "Content-Type:$contenttype" "$MAIL_TO"
|
"$_MAIL_BIN" -s "$subject" -a "From:$MAIL_FROM" -a "Content-Type:$contenttype" "$MAIL_TO"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user