5 |
import java.util.logging.Logger; |
import java.util.logging.Logger; |
6 |
|
|
7 |
import javax.mail.Message; |
import javax.mail.Message; |
8 |
|
import javax.mail.MessagingException; |
9 |
import javax.mail.Session; |
import javax.mail.Session; |
10 |
import javax.mail.Transport; |
import javax.mail.Transport; |
11 |
import javax.mail.internet.InternetAddress; |
import javax.mail.internet.InternetAddress; |
137 |
msg.setText(body); |
msg.setText(body); |
138 |
|
|
139 |
Transport.send(msg); |
Transport.send(msg); |
140 |
} catch (Exception e) { |
} catch (MessagingException e) { |
141 |
logger.warning("Unable to send CircuitBreaker notification mail " + e ); |
logger.warning("Unable to send CircuitBreaker notification mail " + e ); |
142 |
} |
} |
143 |
} |
} |