All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jurajburian.mailer.MimeMessage.scala Maven / Gradle / Ivy

Go to download

Thin wrapper of JavaMail library written in Scala language. Mailer is aim to be used in situations when is necessary send multiple mails, e.t. instance of javax.mail.Session is created and used by Mailer.

The newest version!
package com.github.jurajburian.mailer

import jakarta.mail.Session
import jakarta.mail.internet.{MimeMessage => JavaMimeMessage}

class MimeMessage(session: Session) extends JavaMimeMessage(session) {

  override def updateMessageID(): Unit = {
    Option(headers.getHeader("Message-ID", null)) match {
      case Some(_) => ()
      case None    => super.updateMessageID()
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy