From 644d63b7073f59290029bf084fb57db5a501309d Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Fri, 1 Dec 2017 18:07:59 +0100 Subject: Fixed e-mail layout. --- PollutometerWebApi/EmailSender.cs | 4 ++-- 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" + "\n" + "\n" + - $"The warning was triggered by {gasName}. " + - $"Air quality index: {max}"; + $"

The warning was triggered by {gasName}.

\n" + + $"

Air quality index: {max}

"; 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; } } -- cgit v1.2.3