fix for email sending on production