diff options
-rw-r--r-- | PollutometerWebApi/EmailSender.cs | 4 | ||||
-rw-r--r-- | PollutometerWebApi/EmailService.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/PollutometerWebApi/EmailSender.cs b/PollutometerWebApi/EmailSender.cs index 9effa47..6d8702e 100644 --- a/PollutometerWebApi/EmailSender.cs +++ b/PollutometerWebApi/EmailSender.cs @@ -29,8 +29,8 @@ namespace PollutometerWebApi "\n" + "<img src=\"https://i.imgflip.com/20b4q2.jpg\"/>\n" + "\n" + - $"The warning was triggered by {gasName}. " + - $"Air quality index: {max}"; + $"<p>The warning was triggered by {gasName}.</p>\n" + + $"<p>Air quality index: {max}</p>"; client.Send(mail); } catch(Exception ex) diff --git a/PollutometerWebApi/EmailService.cs b/PollutometerWebApi/EmailService.cs index 06586b1..3681dd2 100644 --- a/PollutometerWebApi/EmailService.cs +++ b/PollutometerWebApi/EmailService.cs @@ -32,7 +32,7 @@ namespace PollutometerWebApi { if (result.Value > max) { - max = result.Value; + max = result.Value; gasName = result.Key; } }
|