Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ public class IntegrationTestEmailServiceProxy : IEmailServiceProxy
/// <summary>
/// Sends the email.
/// </summary>
/// <param name="request">The request.</param>
/// <param name="messageId">The message identifier.</param>
/// <param name="fromAddress">From address.</param>
/// <param name="toAddresses">To addresses.</param>
/// <param name="subject">The subject.</param>
/// <param name="body">The body.</param>
/// <param name="isHtml">if set to <c>true</c> [is HTML].</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns></returns>
public async Task<EmailServiceProxyResponse> SendEmail(Guid messageId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Newtonsoft.Json;
using Service.Services.Email.Smtp2Go;
using Shared.General;
using Shared.Logger;

/// <summary>
///
Expand Down Expand Up @@ -74,6 +75,9 @@ public async Task<EmailServiceProxyResponse> SendEmail(Guid messageId,
};

String requestSerialised = JsonConvert.SerializeObject(apiRequest);

Logger.LogDebug($"Request Message Sent to Email Provider [SMTP2Go] {requestSerialised}");

StringContent content = new StringContent(requestSerialised, Encoding.UTF8, "application/json");

using(HttpClient client = new HttpClient())
Expand All @@ -84,6 +88,8 @@ public async Task<EmailServiceProxyResponse> SendEmail(Guid messageId,

Smtp2GoSendEmailResponse apiResponse = JsonConvert.DeserializeObject<Smtp2GoSendEmailResponse>(await httpResponse.Content.ReadAsStringAsync());

Logger.LogDebug($"Response Message Received from Email Provider [SMTP2Go] {JsonConvert.SerializeObject(apiResponse)}");

// Translate the Response
response = new EmailServiceProxyResponse
{
Expand Down
6 changes: 3 additions & 3 deletions MessagingService/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Default": "Debug",
"Microsoft": "Debug",
"Microsoft.Hosting.Lifetime": "Debug"
}
},
"EventStoreSettings": {
Expand Down