Moved send_mail to POSHandler.