Update door-if.js

Added variable SEND_EMAILS to enable/disable the email feature.