Results 1 to 3 of 3
  1. #1
    Anju Jose is offline Member
    Join Date
    Jan 2008
    Rep Power

    Default javax.mail.SendFailedException: Invalid Addresses;


    I am trying to generate a email from my program, but its throwing exception

    The stack trace is as follows

    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTranspo
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTr
    at javax.mail.Transport.send0(
    at javax.mail.Transport.send(
    at com.octo.hronline.offerletters.sendmail.SendMail.s end(
    at com.octo.hronline.offerletters.createoffer.web.Cre ateOfferAction.execute(
    at org.springframework.web.struts.DelegatingActionPro xy.execute(
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(
    at org.apache.struts.action.RequestProcessor.process(
    at org.apache.struts.action.ActionServlet.process(Act
    at org.apache.struts.action.ActionServlet.doPost(Acti
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at ternalDoFilter(
    at Filter(
    at org.apache.catalina.core.StandardWrapperValve.invo ke(
    at org.apache.catalina.core.StandardContextValve.invo ke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke (
    at org.apache.catalina.core.StandardEngineValve.invok e(
    at org.apache.catalina.connector.CoyoteAdapter.servic e(
    at org.apache.coyote.http11.Http11Processor.process(H
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt
    at Socket(
    at ead.runIt(
    at org.apache.tomcat.util.threads.ThreadPool$ControlR
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for

    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTranspo
    ... 26 more
    221 2.0.0 Service closing transmission channel

    Previously it was working fine and the mail was sent to the desitination address.but for some reason its not working now..

    Can anyone help me?

  2. #2
    JAdmin is offline Member
    Join Date
    Jan 2008
    Rep Power


    Anju (Mallu right?)
    The problem could be that your SMTP server is not accepting relay from your server. Contact whoever is in charge of your mail server.
    Sincerely, Your friends at

  3. #3
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Cambridge, UK
    Rep Power


    Pretty sure that isn't a real email address, hence the Invalid Address exception

Similar Threads

  1. javax.bluetooth
    By ahtiven in forum New To Java
    Replies: 3
    Last Post: 01-13-2009, 03:54 PM
  2. Retreiving of mail body using mail number
    By chandu.v09 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-13-2008, 03:25 PM
  3. I can't import javax.mail
    By katie in forum New To Java
    Replies: 2
    Last Post: 08-04-2007, 05:05 PM
  4. how to read memory addresses
    By fred in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 01:59 AM
  5. Sending a mail with the local mail program
    By thedude in forum Advanced Java
    Replies: 2
    Last Post: 07-23-2007, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts