06-29-2010 07:01 AM - edited 06-29-2010 07:01 AM
Have you tried using the Search to see if anyone else has asked this question before?
They have, Search and you should find the answer and some sample code.
06-29-2010 08:22 AM
following is the post which says abt the same question.
06-29-2010 10:45 AM
You can try this :
String defaultEmailAddress = Session.waitForDefaultSession() .getServiceConfiguration().getEmailAddress() ;
06-29-2010 12:29 PM
OP - does this mean you have solved your own question? If so, then you can mark this Thread as solved using the Post you have added.
Re JaredCo, I would be cautious using waitfor, this will stall the Thread and can cause you grief especially at start up and when you are testing in devices that do not have email set up.
06-30-2010 07:29 PM