I am basically tring to send an email via Microsoft outlook using the Javamail API
No you are not - at least not if you are using JavaMail (If you were using JNI and CDO perhaps, but not with JavaMail). Outlook is
not involved in JavaMail
at all.
Why? Because Outlook is just a Mail User Agent - in the same way your
Java program is. Both will need to know which sever to use. I don't think Outlook keeps its configuration data anywhere easily accessable (like an ini file or something) so I don't think there is an easy way to get this.