com.solarmosaic.client.mail.configuration.PasswordAuthenticator.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mail-client_2.10 Show documentation
Show all versions of mail-client_2.10 Show documentation
Scala mailer built on top of the JavaMail API.
The newest version!
package com.solarmosaic.client.mail.configuration
import javax.mail.{Authenticator, PasswordAuthentication}
/**
* Provides simple password authentication for the SMTP request.
*
* @param username The username
* @param password The password
*/
case class PasswordAuthenticator(
username: String,
password: String
) extends Authenticator {
/** Provides the `PasswordAuthentication` object to the `Authenticator`. */
override def getPasswordAuthentication: PasswordAuthentication = new PasswordAuthentication(username, password)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy