public async Task SendMail(string subject, string content, MailType type, IEnumerable <string> recipients) { // Create a new mail reqeust. var request = new MailRequest() { Subject = subject, Content = content, Type = type }; request.Emails.AddRange(recipients); // Send the request to mail server var reply = await _grpcClinet.SendMailAsync(request); _logger.Log(LogLevel.Information, $"Received reply {reply}"); }