after transport.addTransportListener(),be sure not to use Transport.send().
After java mail sends an email and adds a listener, use the Transport.sendMessage() method, and the monitoring is effective.
after transport.addTransportListener(),be sure not to use Transport.send().
After java mail sends an email and adds a listener, use the Transport.sendMessage() method, and the monitoring is effective.