reworked and removed unneeded code switeched to AS v12.0 to enable HTML mails

Tested for 2 Weeks agains qnap 4.0.2
without any warranty
you will loose data