We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b3c1ed + 94f8243 commit 9141d90Copy full SHA for 9141d90
app/lib/Email.scala
@@ -50,21 +50,12 @@ case class Email(
50
headers.foreach(t => msg.addHeader(t._1, t._2))
51
addresses.replyTo.foreach(r => msg.setReplyTo(Array(new InternetAddress(r))))
52
53
- // Add a MIME part to the message
54
- val mp = new MimeMultipart()
55
-
56
- val part = new MimeBodyPart()
57
- part.setContent(bodyText, "text/plain")
58
- mp.addBodyPart(part)
59
60
- msg.setContent(mp)
+ msg.setText(bodyText)
61
62
val b = new ByteArrayOutputStream()
63
64
msg.writeTo(b)
65
66
- msg.writeTo(System.out);
67
68
ByteBuffer.wrap(b.toByteArray)
69
70
}
0 commit comments