posted 20 years ago
OK, so I put in the debug and the debug said that it is trying to connect to "localhost"?
Here is my code
Properties p = new Properties();
p.setProperty("mail.transport.protocol", "smtp");
p.setProperty("mail.smtp.host", "mail.myserver.com");
p.setProperty("mail.smtp.port", "25");
Session session = Session.getDefaultInstance(p, null);
session.setDebug(true);
I'll keep trying.
Cheers,
Rachel