public async Task SendAsync()

in src/Saas.SignupAdministration/Saas.SignupAdministration.Web/Services/Email.cs [18:41]


    public async Task<HttpResponseMessage> SendAsync(string recipientAddress)
    {
        HttpResponseMessage rtn = new HttpResponseMessage();
        var client = _client.CreateClient(_options.EndPoint);
        JSONEmail email = new JSONEmail();
        email.HTML = _options.Body;
        email.Subject = _options.Subject;
        email.EmailFrom = _options.FromAddress;
        email.EmailTo = recipientAddress;
        email.EmailToName = recipientAddress; 

        var json = JsonSerializer.Serialize(email);
        StringContent content = new StringContent(json, Encoding.UTF8, "application/json");
        try
        {
             rtn = await client.PostAsync(_options.EndPoint, content);
        }
        catch (Exception ex)
        {
            //Logging any errors but not letting them prevent the processes from moving forward. 
            _logger.LogWarning(ex, "Problem emailing tenant");
        }
        return rtn;
    }