Hi, When you are creating a default mail session you are using the Session.getDefaultInstance method - can this be changed to Session.getInstance.
The reason being that the former seems to create an instance for the JVM and regardless of consequent changes to the SMTP host they are ignored. The latter resolves this problem. Thanks & Regards Asar Khan ------------------------------------------------------------- --- Visit our Internet site at http://www.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>