Sunday, July 21, 2002 11:55 PM
JavaMail provides certain Transport level events like ConnectionEvent and TransportEvent which may be useful to you. Refer to JavaMail spec for more details
Time taken to sending an email cannot be determined accurately as it varies over time, affected by several factors. If you do not really require emails to be sent synchronously, consider using asynchronous means like pushing messages to be sent out to a JMS queue, the consumer for which will do the mail sending. This way your app. need to wait for sending the messages.