Knowledgebase & Downloads
The knowledgebase provides documentation written by our team. Please select a category or search for answers.
JavaMail 550 Access Denied Invalid HELO name
I am using your Java hosting package and I want to send a mail from one user to another user but I am getting this exception.
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 Access denied - Invalid HELO name (See RFC2821 18.104.22.168)
; message exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 550 Access denied - Invalid HELO name (See RFC2821 22.214.171.124)
Q: I get "MessagingException: 501 HELO requires domain address" when trying to send a message.
A: 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. You may also set the "mail.smtp.localhost" property to the name you want to use for the HELO command.
See also How to send mail with JavaMail?
- © 2016 JVMHost.com All rights are reserved.