fix send_mail in signals