Poynter, David wrote:
I've been getting this error:

501 Domain address required: HELO

This error happens then the client send an "HELO" command with no other parameters. HELO (by rfc) needs an hostname after the command: James just checks it contains an argument.

Javamail 1.3.2 uses this algorythm to get the domain:
---------------
try {
// get our hostname and cache it for future use
if (localHostName == null || localHostName.length() <= 0)
  localHostName = session.getProperty("mail." + name + ".localhost");
if (localHostName == null || localHostName.length() <= 0)
  localHostName = session.getProperty("mail." + name + ".localaddress");
if (localHostName == null || localHostName.length() <= 0)
   localHostName = InetAddress.getLocalHost().getHostName();
} catch (UnknownHostException uhex) {
}
return localHostName;
-----------

You may want to add a props.put("mail.smtp.localhost", host); to the MailClient constructor.

Stefano



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to