30.01.2007 · Jan 30, 2007 2:08PM. The key is here: java.net.UnknownHostException: smtp.osc.co.in. Obviously you didn't even read that far in the exception. message since you didn't bother to obscure the host name. The problem is that your machine can't find a host with that. name, possibly because you used the wrong name, or.
Javax.mail.MessagingException: Unknown SMTP host: smtp.studentjobexchange.com;. The same code is working fine in my local machine but when i deploy on ...
21.04.2007 · 843834 Member Posts: 49,972. Nov 3, 2008 5:35PM. Alright here is what you need to do -. 1. Check that your SMTP host name is correct and responding by pinging the hostname at command prompt. 2. Set session.setDebug (true); in your code.