Skip to content

Commit e481fb9

Browse files
authored
Set character set for email to UTF-8
Some characters in the email might not be displayed correctly. Setting the charset of the email to utf-8 solves this.
1 parent 33320df commit e481fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snapraid-aio-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ elif [ "$EMAIL_ADDRESS" ]; then
959959
echo "$body"
960960
) | sendmail -t
961961
else
962-
$MAIL_BIN -a 'Content-Type: text/html' -s "$SUBJECT" -r "$FROM_EMAIL_ADDRESS" "$EMAIL_ADDRESS" \
962+
$MAIL_BIN -a 'Content-Type: text/html; charset=UTF-8' -s "$SUBJECT" -r "$FROM_EMAIL_ADDRESS" "$EMAIL_ADDRESS" \
963963
< <(echo "$body")
964964
fi
965965
fi

0 commit comments

Comments
 (0)