Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Mail Send Module Not Working

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mail Send Module Not Working

    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)


  2. #2

    Default Re: Mail Send Module Not Working

    Looks like the mail server requires authentication but you didn't supply the user name and password. Can you post your code here?
    There is an useful example here: Send e-mail in HTML format using JavaMail API

Similar Threads

  1. How to Send emails from Google Mail using JavaMail API
    By JavaPF in forum Java SE API Tutorials
    Replies: 3
    Last Post: February 26th, 2012, 04:21 PM
  2. Send Scanned File to E-mail
    By babywiz21 in forum Java Theory & Questions
    Replies: 1
    Last Post: April 2nd, 2011, 08:40 PM
  3. How to Send emails from Google Mail using JavaMail API
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 1
    Last Post: November 14th, 2010, 11:00 AM
  4. How to write registration module
    By speedzojie in forum Java Theory & Questions
    Replies: 3
    Last Post: May 10th, 2010, 03:03 AM
  5. Replies: 4
    Last Post: January 27th, 2009, 12:03 AM