Set up email configuration with environment variables
Fix email escaping on messages