Replace static service for send email to an event system