Skip to content

Commit

Permalink
Merge pull request #731 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: debugging CHES email error
  • Loading branch information
ychung-mot authored Oct 22, 2024
2 parents cf2f46d + 39e8c72 commit 12790c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/StrDss.Service/EmailMessageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public async Task<string> SendEmailAsync(EmailContent emailContent)
}

var jsonContent = emailContent.ToString();

_logger.LogDebug($"CHES: {jsonContent}");

var httpContent = new StringContent(jsonContent, Encoding.UTF8, "application/json");

var response = await _httpClient.PostAsync($"{chesUrl}/api/v1/email", httpContent);
Expand Down

0 comments on commit 12790c0

Please sign in to comment.