started to rewrite send invite email from service to directive