nithril / smtp-connection-pool

SMTP Connection Pool
Apache License 2.0
47 stars 19 forks source link

How do i get last response from mailing server. #12

Closed rohandodeja closed 7 years ago

rohandodeja commented 7 years ago

i want to get last response from server like i do with SMTPTransport like below:-

String response=((SMTPTransport) transport).getLastServerResponse();

nithril commented 7 years ago
try (ClosableSmtpConnection connection = smtpConnectionPool.borrowObject()) {
    ((SMTPTransport)connection.getDelegate()).getLastServerResponse();
}