• Post Reply Bookmark Topic Watch Topic
  • New Topic

to check if smtp connection exists

 
kiran manohar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
If on sending an email there is no internet connection, then the send() method throws a Messaging Exception.but i want the exception to be thrown when i use the
following code.

Is there any way to do it
regards
Kiran
 
Chris Jebaraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Try receiving Messaging Exception and then throw a new exception with the message as the received one. This may help u.

Jebaraj.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!