Skip to content

How does one get access to the actual keyset for the extensions hashmap, only documented methods are getExtensionParameter or supportsExtension? #748

@KevinDyer-3DS

Description

@KevinDyer-3DS

I am working on a new mail user/transport agent for our web based applications. It must be able to connect to a myriad of SMTP servers for different customer situations from straight forward SMTP through ESMTP (AUTH, STARTTLS, OAUTH2). I am trying to make the code perform some checks with what is in the EHLO response and realized I do not have a means to access the MailConnection object that is established within the Transport object. I therefore cannot easily access either supportsExtension(String Name) or extensionParameter(String Name) to interrogate what the server said it supports.

Without trying to use reflection how does one provide reasonable feedback on what the server said it supported versus what the program was configured to use? Do I re-implement sendEhlo within my own code, but that is kind of stupid right?

A simple Transport.getMailConnection() method would at least allow developers the ability to access that level of information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions