Fix for add '-w 0' to base64 encoding of subject line to avoid line wrapping
Credit to for finding the fix here
@@ -65,7 +65,7 @@ if [[ -z $trimmed && $SEND_EMPTY_BODY -eq 1 ]] || [[ -n $trimmed ]]; then
cat <<EOF
TO: ${TO}
FROM: ${FROM}
-SUBJECT: =?UTF-8?B?$(echo ${SUBJECT} | base64)?=
+SUBJECT: =?UTF-8?B?$(echo ${SUBJECT} | base64 -w 0)?=
EOF
if [[ -n $ATTACHMENTS ]]; then
