Hi,

Anybody can help me i'm getting error while i'm sending mail through JavaMail.




DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false

DEBUG: SMTPTransport trying to connect to host "smra.sancharnet.in", port 25

DEBUG SMTP RCVD: 220 bgl1mr1-a-fixed.sancharnet.in -- Server ESMTP (*)

DEBUG: SMTPTransport connected to host "smra.sancharnet.in", port: 25

DEBUG SMTP SENT: EHLO diamonds
DEBUG SMTP RCVD: 250-bgl1mr1-a-fixed.sancharnet.in
250-8BITMIME
250-PIPELINING
250-DSN
250-XDFLG
250-ENHANCEDSTATUSCODES
250-HELP
250-SAML
250-SEND
250-SOML
250-TURN
250-XCIR
250-XGEN
250-XLOOP 0366185F8E4333590F146C4283D586D1
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN
250-ETRN
250-RELAY
250 SIZE 0

DEBUG SMTP Found extension "8BITMIME", arg ""
DEBUG SMTP Found extension "PIPELINING", arg ""
DEBUG SMTP Found extension "DSN", arg ""
DEBUG SMTP Found extension "XDFLG", arg ""
DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP Found extension "HELP", arg ""
DEBUG SMTP Found extension "SAML", arg ""
DEBUG SMTP Found extension "SEND", arg ""
DEBUG SMTP Found extension "SOML", arg ""
DEBUG SMTP Found extension "TURN", arg ""
DEBUG SMTP Found extension "XCIR", arg ""
DEBUG SMTP Found extension "XGEN", arg ""
DEBUG SMTP Found extension "XLOOP", arg "0366185F8E4333590F146C4283D586D1"
DEBUG SMTP Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP Found extension "AUTH=LOGIN", arg ""
DEBUG SMTP Found extension "ETRN", arg ""
DEBUG SMTP Found extension "RELAY", arg ""
DEBUG SMTP Found extension "SIZE", arg "0"
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<nsures@rediffmail.com>
DEBUG SMTP RCVD: 250 2.5.0 Address Ok.

DEBUG SMTP SENT: RCPT TO:<nsures@rediffmail.com>
DEBUG SMTP RCVD: 530 5.7.1 Relaying not allowed: nsures@rediffmail.com

Invalid Addresses
nsures@rediffmail.com
DEBUG SMTPTransport: Sending failed because of invalid destination addresses
DEBUG SMTP SENT: RSET
DEBUG SMTP RCVD: 250 2.5.0 Ok.

DEBUG SMTP SENT: QUIT
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 530 5.7.1 Relaying not allowed: nsures@rediffmail.com