-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
TransportListener via Session #216
Comments
Uhh, I was not aware of this TransportListener. Can you link some additional documentation for me? More to the point, what feedback are you missing? The library let's you know when it failed or succeeded right (exception or no exception). |
Any update @koen-serry? |
Yeah I had found that by now ;) My other question remains unanswered which really is about why you would need access to the underlying JavaMail API; doesn't Simple Java Mail provide enough feedback? What did you expect and what are you missing. |
Well the event allows you to get access to all the details of the session that is shielded by the api as it is now. Certainly if things don't work as they should it is helpful to be able to have access to all the underlying objects |
Would you like to configure this at email level or at mailer level? |
I think it would make sense on a mailer level since you're generally either concerned about your smtp server or not at all. |
Ok, so I'm close to picking this up. There is one issue though, in 6.0.0, support for server clustering was added. So you can have several mailer instances all adding to a cluster, resulting in the effect that any mailer used to send an email delegates to the cluster instead (meaning, How then to manage server feedback using transport listeners? I guess I should have transport listeners on each session and aggregate it into a single new transport listener or something like that... On the other hand, please take a look at #148 and see if that suits your needs instead. |
Closing as it is not clear to me what problem it solves that cannot be solved with the current facilities. |
I was wondering if there's any workaround for adding a TransportListener to the Transport via the session? Since I'd like to have both positive and negative feedback from the underlying smtp server.
The text was updated successfully, but these errors were encountered: