From 17044297e98da70a7d7c0eb1379d48294370a7a3 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Thu, 15 Aug 2019 11:26:58 +0100 Subject: [PATCH] Fixed email from address --- .../src/main/kotlin/uk/co/neviyn/observationdatabase/Email.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Email.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Email.kt index 3c7261b..a719b0a 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Email.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Email.kt @@ -32,7 +32,7 @@ class Email { logger.debug("Constructing email") val email = EmailBuilder.startingBlank() .to("Simulator Team", environment.getProperty("smtp.toaddress")) - .from("noreply@obsdb") + .from(environment.getProperty("smtp.username")!!) .withSubject("Observation Session Data") .withPlainText("Attached observation data was generated: ${DateTime.now()}.") .withAttachment("observations.csv", observationsToCSV(observations).toByteArray(), "text/csv")