Fixed email from address

This commit is contained in:
neviyn 2019-08-15 11:26:58 +01:00
parent 35cd2c24f0
commit 17044297e9

View File

@ -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")