This one hangs
OK here are my properties, obviously username etc covered
properties.setProperty("protocol","smtp");
properties.setProperty("type","transport");
properties.setProperty("class","com.sun.mail.smtp.SMTPTransport");
properties.setProperty("vendor","Sun Microsystems, Inc.");
properties.setProperty("username","username");
properties.setProperty("password","password");
It loads everthing up into an
SMTPTransport transport = new SMTPTransport(session,theURLName);
System.out.println("Got here");
transport.send(message,addresses);
System.out.println("Sent");
It gets to 'got here' but not sent, it just hangs. theURLName is currently pretty arbitrary. I've assigned it to
private static final String urlName = "smtp.blueyonder.co.uk";
as that is my provider but am not sure if that is what is what I want.

