Skip to content

Commit f1c46e9

Browse files
author
Dmitry Bannik
committed
fix charset russian language to send mail
1 parent 4bc53a1 commit f1c46e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

func/main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12
# Internal variables
23
HOMEDIR='/home'
34
BACKUP='/backup'
@@ -448,6 +449,7 @@ sync_cron_jobs() {
448449
rm -f $crontab
449450
if [ "$CRON_REPORTS" = 'yes' ]; then
450451
echo "MAILTO=$CONTACT" > $crontab
452+
echo 'CONTENT_TYPE="text/plain; charset=utf-8"' >> $crontab
451453
fi
452454
while read line; do
453455
eval $line

0 commit comments

Comments
 (0)