What do you mean by "testing on your machine" - do you want to run a mail server locally? While that's certainly possible -look into Apache James for that- it shouldn't be necessary. The mail server you use with Outlook should work fine. You need to set the mail.smtp.host property with the host name of the mail server, and you may need an Authenticator for supplying the password to go with the email address. You'll find many code samples and further implementation details
here.
Let's move this to the Other
Java APIs forum where JavaMail gets discussed.