SMTPSendFailedException: 530, Address requires authentication
March 20th, 2009
Applies to:
NA
Description:
Occurs when trying to send a message
Cause:
You have tried to send a message.
Applies to:
NA
Description:
Occurs when trying to send a message
Cause:
You have tried to send a message.
JAVA-Mail "address requires authentication", 530 address requires authentication, 530 authentication required in weblogic server, 530 authentication required java, 530 mail requires auth, 530 requires authentication, address requires authentication 530, authentication required. glassfish, com.sun.mail.smtp.smtpsendfailedexception 551 in jsp mail, com.sun.mail.smtp.smtpsendfailedexception: 530 authentication required, com.sun.mail.smtp.smtpsendfailedexception: 551 this mail server requires authentication before sending mail, java 530 .. mail requires auth, java 530 authentication required, java 530 smtp authentication required, java mail authenticaton required, java mail smtpsendfailedexception, lrm-00118: syntax error at '=' at the end of input, resoudre athentification required 530 dans java, smtp 530 address requires authentication, smtp;530 address requires authentication, smtpsendfailedexception 530, smtpsendfailedexception 530 authentication, smtpsendfailedexception 530 solution, smtpsendfailedexception authentication required, smtpsendfailedexception solution, smtpsendfailedexception: 530 authentication required, smtpsendfailedexception: 530 authorization, smtpsendfailedexception: what is 530 authentication required, weblogic 10 transport.send() error, yahoo 521 authentication required
You need to authenticate to your SMTP server. The package javadocs for the com.sun.mail.smtp package describe several methods to do this. The easiest is often to replace the call Transport.send(msg); with
String protocol = “smtp”;
props.put(“mail.” + protocol + “.auth”, “true”);
…
Transport t = session.getTransport(protocol);
try {
t.connect(username, password);
t.sendMessage(msg, msg.getAllRecipients());
} finally {
t.close();
}
You’ll have to supply the appropriate username and password needed by your mail server. Note that you can change the protocol to “smtps” to make a secure connection over SSL.