Authenticator
classin packageklyn.mails
public class Authenticator extends Object:
Hook used by `Session` to resolve SMTP credentials lazily.
This is intentionally lighter than JavaMail's callback model: override
`requestPasswordAuthentication(session)` and return the credentials to use.
import klyn.mails
class DemoAuthenticator extends Authenticator:
public override requestPasswordAuthentication(session as Session) as PasswordAuthentication:
return PasswordAuthentication("user", "secret")
Methods