This is a strange one. A Google search has turned up no useful solution. For some reason the mail API does not work on my computer. It works on others in my shoppe, but not mine. I get the error about when it tries to create the message.
Properties props = new Properties();
props = System.getProperties();
props.put("mail.smtp.host","image1");
props.put("mail.smtp.port",String.valueOf(25));
javax.mail.Session s = javax.mail.Session.getInstance(props, null);
Message message = new MimeMessage(s);
Nothing fancy. It doesn't work in any project I create. And these projects are exactly the same as what's on my co-workers computers where it does work. Yes I have the activation.jar. Yes it is in my classpath. I can type out the classname in my IDE, so my IDE at least sees it if that means anything.
Any help appreciated. This problem essentially means I can do no e-mail testing on my computer.
Thanks,
Karl