dcsimg
How do you get JavaMail to tell SMTP to send the domain...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   David_Chen
Posted On:   Wednesday, February 28, 2001 06:57 PM

How do you get JavaMail to tell SMTP to send the domain name along with the HELO command to avoid a MessagingException "501 HELO requires domain address"?

Re: How do you get JavaMail to tell SMTP to send the domain...

Posted By:   John_Zukowski  
Posted On:   Sunday, March 18, 2001 08:28 PM

From Sun's JavaMail FAQ:

The SMTP provider uses the results of InetAddress.getLocalHost().getHostName() in the SMTP HELO command. If that call fails to return any data, no name is sent in the HELO command. Check your JDK and name server configuration to ensure that that call returns the correct data. Starting with JavaMail 1.1.3, you may also set the mail.smtp.localhost property to the name you want to use for the HELO command.
About | Sitemap | Contact