diff options
author | marcinzelent <zelent.marcin@gmail.com> | 2017-12-01 18:07:59 +0100 |
---|---|---|
committer | marcinzelent <zelent.marcin@gmail.com> | 2017-12-01 18:07:59 +0100 |
commit | 644d63b7073f59290029bf084fb57db5a501309d (patch) | |
tree | 0e9f82403961020ede43abac39b303ade13cb1b3 | |
parent | 79bf391df757c50374a5acde3008860d48295926 (diff) |
Fixed e-mail layout.
-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; } }
|