Email report changed since Upgrade from 11.1-U7 to 11.3-U4

fixit9660

Dabbler
Joined
Jan 14, 2018
Messages
33
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:

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?
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
From a search :
 

fixit9660

Dabbler
Joined
Jan 14, 2018
Messages
33
Solved.
I eventually followed the info trail to the FreeNAS Github Repository https://github.com/Spearfoot/FreeNAS-scripts, which it took me a while to track down. I think I understand that the way the email treats text, http, etc has changed and is now more specific.
 
Top