Introduced an SmtpClientWrapper layer in the email service for testability