update on api/services/EmailService.js