Hi,
I am sending mail using email.send() function using mail.jar . I am using a senderEmailIdwhise mail box is not configured ie noreply@***.com. But it is giving following errors:
org.apache.commons.mail.EmailException: Sending the email to the following server failed
at org.apache.commons.mail.Email.sendMimeMessage(Emai l.java:1138)
at org.apache.commons.mail.Email.send(Email.java:1163 )
at EmailSending.prmMail(EmailSending.java:42)
at A.main(A.java:7)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(S MTPTransport.java:1668)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTrans port.java:1207)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTr ansport.java:735)
at javax.mail.Transport.send0(Transport.java:191)
at javax.mail.Transport.send(Transport.java:120)
at org.apache.commons.mail.Email.sendMimeMessage(Emai l.java:1128)