Changed email text

This commit is contained in:
neviyn 2019-07-24 10:12:02 +01:00
parent 449c4cf3b1
commit b8a9321b3d

View File

@ -33,7 +33,7 @@ class Email {
val email = EmailBuilder.startingBlank() val email = EmailBuilder.startingBlank()
.to("Simulator Team", environment.getProperty("smtp.toaddress")) .to("Simulator Team", environment.getProperty("smtp.toaddress"))
.withSubject("Observation Session Data") .withSubject("Observation Session Data")
.withPlainText("Attached is the observation data for the session completed ${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")
.buildEmail() .buildEmail()
logger.info("Sending mail to ${email.recipients}") logger.info("Sending mail to ${email.recipients}")