4 Replies Latest reply on Jan 19, 2007 5:44 PM by 843830

    550 Sender address is missing a domain

    843830
      I am getting this error while sending message through java mail.


      com.sun.mail.smtp.SMTPSendFailedException: 550 Sender address is missing a domain

      I searched the net, Javamail FAQ and forum. Dint find any solution.
      I would appreciate a lot if any one tell me what the problem is

      Thanks in advance
        • 1. Re: 550 Sender address is missing a domain
          Bill Shannon-Oracle
          A protocol trace would probably tell us what's going wrong.
          Turn on session debugging and post the results.
          • 2. Re: 550 Sender address is missing a domain
            843830
            Below is the full trace

            DEBUG: setDebug: JavaMail version 1.4ea
            DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
            DEBUG SMTP: useEhlo true, useAuth false
            DEBUG SMTP: trying to connect to host "smtp1.ns.sympatico.ca", port 25, isSSL false
            220 simmts12-srv.bellnexxia.net ESMTP server (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) ready Fri, 19 Jan 2007 00:56:28 -0500
            DEBUG SMTP: connected to host "smtp1.ns.sympatico.ca", port: 25

            EHLO kkmadala
            250-simmts12-srv.bellnexxia.net
            250-HELP
            250-PIPELINING
            250-DSN
            250-8BITMIME
            250 SIZE 20971520
            DEBUG SMTP: Found extension "HELP", arg ""
            DEBUG SMTP: Found extension "PIPELINING", arg ""
            DEBUG SMTP: Found extension "DSN", arg ""
            DEBUG SMTP: Found extension "8BITMIME", arg ""
            DEBUG SMTP: Found extension "SIZE", arg "20971520"
            DEBUG SMTP: use8bit false
            MAIL FROM:<smtp1.ns.sympatico.ca>
            550 Sender address is missing a domain
            com.sun.mail.smtp.SMTPSendFailedException: 550 Sender address is missing a domain

                 at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
                 at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
                 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
                 at javax.mail.Transport.send0(Transport.java:169)
                 at javax.mail.Transport.send(Transport.java:98)
                 at MailDrop.SendMail.<init>(SendMail.java:32)
                 at MailDrop.SendMail.main(SendMail.java:39)
            QUIT
            221 simmts12-srv.bellnexxia.net ESMTP server closing connection
            com.sun.mail.smtp.SMTPSendFailedException: 550 Sender address is missing a domain

                 at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
                 at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
                 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
                 at javax.mail.Transport.send0(Transport.java:169)
                 at javax.mail.Transport.send(Transport.java:98)
                 at MailDrop.SendMail.<init>(SendMail.java:32)
                 at MailDrop.SendMail.main(SendMail.java:39)
            • 3. Re: 550 Sender address is missing a domain
              Bill Shannon-Oracle
              It seems that you've set the From address in the message to
              "smtp1.ns.sympatico.ca", which also seems to be the same of
              your SMTP server. Of course, that's not a valid email address,
              so the server rejects it.

              I'm sure you can find the place in your code where you set that,
              and fix it.
              • 4. Re: 550 Sender address is missing a domain
                843830
                You are right. I was using wrong from address. Thanks for the Solution it works now