Re: I am trying to send a mail through JavaMail but I am getting an exception: Could not connect to SMTP host: localhost, port: 25;
Monday, March 11, 2002 06:20 AM
It seems to be ignoring your setting. Perhaps you either have a typo in your property name or you aren't setting the variables properly. Try replacing the smtpHost variable with the server you want directly. Remove the one level of indirection.