- .
This commit is contained in:
@ -38,7 +38,8 @@ public class RegistrazioneMailProcessor : IMailProcessor
|
|||||||
Body = body,
|
Body = body,
|
||||||
Cc = null,
|
Cc = null,
|
||||||
Subject = _config.Subject,
|
Subject = _config.Subject,
|
||||||
To = to // new() { "g.vitari@oaservice.it" }
|
To = //to
|
||||||
|
new() { "g.vitari@oaservice.it" }
|
||||||
};
|
};
|
||||||
|
|
||||||
var messageJson = JsonSerializer.Serialize(email);
|
var messageJson = JsonSerializer.Serialize(email);
|
||||||
@ -61,8 +62,6 @@ public class RegistrazioneMailProcessor : IMailProcessor
|
|||||||
form
|
form
|
||||||
);
|
);
|
||||||
response.EnsureSuccessStatusCode();
|
response.EnsureSuccessStatusCode();
|
||||||
if (chunk.First().ToList.Contains("4"))
|
|
||||||
throw new Exception("Simulazione errore di invio");
|
|
||||||
Array.ForEach(chunk, item => item.Sent = true);
|
Array.ForEach(chunk, item => item.Sent = true);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
Reference in New Issue
Block a user