Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Information about used TLS Version? #174

Open
xxjonesriderxx opened this issue Oct 6, 2021 · 3 comments
Open

Get Information about used TLS Version? #174

xxjonesriderxx opened this issue Oct 6, 2021 · 3 comments
Labels
documentation Improvements or additions to documentation smtp

Comments

@xxjonesriderxx
Copy link

Is it possible to retrieve information about the tls version which was used to connect to the smtp server when sending an email?

@robert-virkus
Copy link
Member

Instead of client.connectToServer(...) you can also create your own socket and call client.connect(socket, connectionInformation: ConnectionInfo(host, port, isSecure)). In this way you can control every aspect.

I hope this helps?

@robert-virkus robert-virkus added documentation Improvements or additions to documentation smtp labels Oct 6, 2021
@xxjonesriderxx
Copy link
Author

Im already using client.connect this is establishing an connection wich some TLS version. I only need to know which TLS version it used to establish this connecton. Do you now if this is possible?

@robert-virkus
Copy link
Member

Hi, nope sorry, I don't know if or how this is possible, I assume this is not SecureSocket.selectedProtocol, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation smtp
Projects
None yet
Development

No branches or pull requests

2 participants