Secure method to send emails from Python