Make specific String bold in Scala

21 views
Skip to first unread message

Charan Chand

unread,
Dec 20, 2017, 2:56:56 AM12/20/17
to scala-labs

Using following method, I am sending Email in Scala 

  def email(to: Seq[String], subject: String, body: String) = {

    import scala.sys.process._

    val emailCmd = Seq("mailx", "-s", subject, to.mkString(",")) #< (new java.io.ByteArrayInputStream(body.getBytes()))

    emailCmd!

}

I am wondering if I can make specific parts of string 'BOLD' for the subject.

Reply all
Reply to author
Forward
0 new messages