change the failure_handler and hangup apps use resources.functions.send_mail so they can use the correct smtp_from* settings