Problem to Sent emails using Java

Problem to Sent emails using Java

Hello,

I am using following properties to send a mail using Java programming :
            
            Properties prop = System.getProperties();
                        
            prop.put("mail.smtp.auth", "true");
            prop.setProperty("mail.pop3.socketFactory.class","javax.net.ssl.SSLSocketFactory"); 
            prop.setProperty("mail.smtp.socketFactory.class","javax.net.ssl.SSLSocketFactory");
            prop.setProperty("mail.smtp.socketFactory.fallback","false");
            prop.setProperty("mail.smtp.socketFactory.port","465");
            prop.put("mail.smtp.startssl.enable", "true");
            prop.put("mail.smtp.host", "smtp.zoho.com");
            prop.put("mail.smtp.port", "465");

The email username and pwd are set correctly. The error is - "Relaying disallowed as username"

The run results in following debug trace :
*************************************************************************************
DEBUG: JavaMail version 1.5.5
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
DEBUG SMTP: need username and password for authentication
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.zoho.com", port 465, isSSL false
220 mx.zohomail.com SMTP Server ready August 3, 2016 3:09:44 AM PDT
DEBUG SMTP: connected to host "smtp.zoho.com", port: 465

EHLO Lenovo-PC
250-mx.zohomail.com Hello Lenovo-PC (115.118.242.137 (115.118.242.137))
250-AUTH LOGIN PLAIN
250 SIZE 53477376
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP: Found extension "SIZE", arg "53477376"
DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2 
DEBUG SMTP: Using mechanism LOGIN
DEBUG SMTP: AUTH LOGIN command trace suppressed
DEBUG SMTP: AUTH LOGIN succeeded
DEBUG SMTP: use8bit false
MAIL FROM:<username>
250 Sender <username> OK
RCPT TO:< someuser@gmail.com>
250 Recipient < someuser@gmail.com> OK
DEBUG SMTP: Verified Addresses
DEBUG SMTP:   someuser@gmail.com
DATA
354 Ok Send data ending with <CRLF>.<CRLF>
From: username
Message-ID: <251913517.0.1470218983038@Lenovo-PC>
Subject: Modify
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Modify
.
553 Relaying disallowed as username
DEBUG SMTP: got response code 553, with response: 553 Relaying disallowed as username

RSET
DEBUG SMTP: EOF: [EOF]
DEBUG SMTP: MessagingException while sending, THROW: 
com.sun.mail.smtp.SMTPSendFailedException: 553 Relaying disallowed as username

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2249)
       ....
      .....
*****************************************************************************************************************

Kindly suggest a solution,

Best Regards,