added domain variable to email context