set environ for email