mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
removed newline at the end of subject, added MIME-Version header
This commit is contained in:
parent
b2fc84c98e
commit
ee2dab51f3
@ -62,7 +62,7 @@ mail_send() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
contenttype="text/plain; charset=utf-8"
|
contenttype="text/plain; charset=utf-8"
|
||||||
subject="=?UTF-8?B?$(echo "$_subject" | _base64)?="
|
subject="=?UTF-8?B?$(printf "$_subject" "%b" | _base64)?="
|
||||||
result=$({ _mail_body | eval "$(_mail_cmnd)"; } 2>&1)
|
result=$({ _mail_body | eval "$(_mail_cmnd)"; } 2>&1)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
@ -131,6 +131,7 @@ _mail_body() {
|
|||||||
echo "To: $MAIL_TO"
|
echo "To: $MAIL_TO"
|
||||||
echo "Subject: $subject"
|
echo "Subject: $subject"
|
||||||
echo "Content-Type: $contenttype"
|
echo "Content-Type: $contenttype"
|
||||||
|
echo "MIME-Version: 1.0"
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user