Monday, August 12, 2002 06:53 AM
In my code I hv done props.put("mail.smtp.host", _smtpHost ); the _smtphost is send by a command line argument.But in the exception it's trying to connect local host?
OK, so you have not taken "debugging 101" yet, I guess (sorry for being grumpy, it's a rainy Monday morning).
So, in your program, just as in any other program in any other computer language, here's how you start debugging code like this: you print out (to stderr or log or whatever) the value of "_smtpHost" which you are actually providing at runtime to "props.put". Now see how that compares, with what you think you are getting, and proceed from there.