com.github.jurajburian.mailer.MimeMessage.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailer_2.13 Show documentation
Show all versions of mailer_2.13 Show documentation
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