Posted By:
Anonymous
Posted On:
Monday, June 18, 2001 02:16 AM
I am trying to connecting to an Exchange Server. The server returns the error. javax.mail.MessagingException: Could not connect to SMTP host: 158.76.48.12, port: 25 This is the code String smtpHost = "158.76.48.12"; String fromAddress = "pieter@sybase.co.za"; String toAddress = "jimmy@sybase.co.za"; Properties properties = System.getProperties(); properties.put("mail.host", smtpHost); properties.put("mail.user", "SQLSYB\Pieter\Pieter van Onselen"); properties.put("mail.from", "pieter@sybase.co.za"); S
More>>
I am trying to connecting to an Exchange Server. The server returns the error.
javax.mail.MessagingException: Could not connect to SMTP host: 158.76.48.12, port: 25
This is the code
String smtpHost = "158.76.48.12";
String fromAddress = "pieter@sybase.co.za";
String toAddress = "jimmy@sybase.co.za";
Properties properties = System.getProperties();
properties.put("mail.host", smtpHost);
properties.put("mail.user", "SQLSYB\Pieter\Pieter van Onselen");
properties.put("mail.from", "pieter@sybase.co.za");
Session session = Session.getInstance(properties, null);
<<Less