klyn.mails.Authenticator.requestPasswordAuthentication
method

    public requestPasswordAuthentication(session as Session) as PasswordAuthentication:

Description

Resolves SMTP credentials for the provided session.

Override this method in subclasses.

Parameters

Parameter | Description
--- | ---
`session` | Mail session requesting credentials.

Returns

Credentials or `null` when the session should stay anonymous.

Example

    import klyn.mails

    auth = Authenticator()
    print(auth.requestPasswordAuthentication(null) == null)