Error List

Error List for the ‘JAVA-Mail’ Category

SMTPSendFailedException: 530, Address requires authentication

Applies to:
NA

Description:
Occurs when trying to send a message

Cause:
You have tried to send a message.

admin JAVA-Mail

Headers do not reflect the message changes

Applies to:
NA

Description:
Occurs when modifying a message

Cause:
You have modified a message, but the headers do not reflect the changes.

admin JAVA-Mail

UnsupportedDataTypeException when sending new message

Applies to:
NA

Description:
Occurs while sending a message with unsupported content

Cause:
You probably set some content for your message using the setContent(Object o, String type) method.

admin JAVA-Mail

MessagingException: 501 HELO requires domain address

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
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.

admin JAVA-Mail

Must issue a STARTTLS command first

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
Your SMTP server wants you to switch from a plain text connection to a secure connection using the STARTTLS command.

admin JAVA-Mail

javax.mail.SendFailedException: 550 Unable to relay for my-address

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
This is not a JavaMail problem. This is an error reply from your SMTP mail server.

admin JAVA-Mail

Connection refused error

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
The host you’re trying to connect to is most likely not running a mail server.

admin JAVA-Mail

Error 553: To send mail, first check your mail with a valid POP account

Applies to:
NA

Description:
Occurs while sending a mail

Cause:
In order to prevent their use to send spam, some mail servers will require you to have a valid POP3 account and require you to login to that account before they’ll let you send mail through that mail server.

admin JAVA-Mail

Problems using POP3 with Microsoft Exchange

Applies to:
NA

Description:
Occurs while using POP3 protocol with Microsoft Exchange

Cause:
Some versions of Microsoft Exchange do not implement the POP3 protocol properly. They return different headers from the TOP command than they do from the RETR command. This can cause all sorts of strange failures in JavaMail.

admin JAVA-Mail

java.lang.NoSuchFieldError: contentStream at com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:115)

Applies to:
NA

Description:
Occurs while using POP3 protocol

Cause:
You’ve mixed versions of the POP3 provider and mail.jar. You probably have an older version of mail.jar in your CLASSPATH before the newer version that includes the POP3 provider.

admin JAVA-Mail