config tweak
bug in send_mail function