Skip to content

Commit 76240e1

Browse files
committed
fix SimpleMailProvider with attachment - upgrade dependency to scheduler api
1 parent f329a7b commit 76240e1

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

api/build.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import app.softnetwork.sbt.build._
22
import com.typesafe.sbt.packager.docker._
33

4+
app.softnetwork.sbt.build.Publication.settings
5+
46
Compile / mainClass := Some("app.softnetwork.notification.api.AllNotificationsPostgresLauncher")
57

68
dockerBaseImage := "openjdk:8"

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ThisBuild / organization := "app.softnetwork"
3131

3232
name := "notification"
3333

34-
ThisBuild / version := "0.2.3"
34+
ThisBuild / version := "0.2.4"
3535

3636
ThisBuild / scalaVersion := "2.12.15"
3737

core/src/main/scala/app/softnetwork/notification/spi/SimpleMailProvider.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ trait SimpleMailProvider extends MailProvider with MailSettings with StrictLoggi
3434
.setHtmlMsg(notification.richMessage.getOrElse(notification.message))
3535
.setTextMsg(notification.message)
3636
case MultiPart =>
37-
val multipart = new MultiPartEmail()
37+
val multipart = new HtmlEmail()
3838
val attachments = notification.attachments.toList ++ {
3939
notification.attachment match {
4040
case Some(attachment) => List(attachment)
@@ -49,7 +49,10 @@ trait SimpleMailProvider extends MailProvider with MailSettings with StrictLoggi
4949
EmailAttachment.ATTACHMENT
5050
)
5151
})
52-
multipart.setMsg(notification.richMessage.getOrElse(notification.message))
52+
multipart
53+
.setHtmlMsg(notification.richMessage.getOrElse(notification.message))
54+
.setTextMsg(notification.message)
55+
5356
case _ => new SimpleEmail().setMsg(notification.message)
5457
}
5558

project/src/main/scala/app/softnetwork/sbt/build/Versions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ object Versions {
44

55
val genericPersistence = "0.2.6.1"
66

7-
val scheduler = "0.2.4"
7+
val scheduler = "0.2.5.3"
88

99
val server = "0.2.8"
1010

0 commit comments

Comments
 (0)