Support for html notifications. Fix incorrect fail in send_notification. Test failed send_notifications call