Until very recently I was running 11.1-U7. I'd set up several cron jobs in Tasks to email me with various reports.
Since upgrading to 11.3-U4 the emails have changed thus:
11.1-U7 sending Email Confidence Check:
########## Email Confidence Check FREENAS ##########
11.3-U4 sending Email Confidence Check:
<pre style="font-size:14px">
########## Email Confidence Check FREENAS ##########
</pre>
I've checked the shell script that I use and nothing has changed:
Can anyone explain please?
Since upgrading to 11.3-U4 the emails have changed thus:
11.1-U7 sending Email Confidence Check:
########## Email Confidence Check FREENAS ##########
11.3-U4 sending Email Confidence Check:
<pre style="font-size:14px">
########## Email Confidence Check FREENAS ##########
</pre>
I've checked the shell script that I use and nothing has changed:
Code:
#!/bin/sh
### Parameters ###
# Specify your email address here:
email="me@mynet.co.xx"
logfile="/root/my_programs/emailfile.tmp"
freenashost=$(hostname -s | tr '[:lower:]' '[:upper:]')
subject="Email Confidence Check for ${freenashost}"
### Set email headers ###
(
echo "To: ${email}"
echo "Subject: ${subject}"
echo "Content-Type: text/html"
echo "MIME-Version: 1.0"
printf "\r\n"
) > ${logfile}
### Set email body ###
echo "<pre style=\"font-size:14px\">" >> ${logfile}
echo "########## Email Confidence Check ${freenashost} ##########" >> ${logfile}
echo "</pre>" >> ${logfile}
sendmail ${email} < ${logfile}
rm ${logfile}
Can anyone explain please?