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") logger.debug("Constructing email")
val email = EmailBuilder.startingBlank() val email = EmailBuilder.startingBlank()
.to("Simulator Team", environment.getProperty("smtp.toaddress")) .to("Simulator Team", environment.getProperty("smtp.toaddress"))
.from("noreply@obsdb") .from(environment.getProperty("smtp.username")!!)
.withSubject("Observation Session Data") .withSubject("Observation Session Data")
.withPlainText("Attached observation data was generated: ${DateTime.now()}.") .withPlainText("Attached observation data was generated: ${DateTime.now()}.")
.withAttachment("observations.csv", observationsToCSV(observations).toByteArray(), "text/csv") .withAttachment("observations.csv", observationsToCSV(observations).toByteArray(), "text/csv")