Setting request context for emails.