dcsimg
i am able to read emails but not able to send it throws SendFailedException please help me .....
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Pankaj_Jha
Posted On:   Monday, July 23, 2001 09:51 AM

hi gurus, i am trying to send mail using SMTP , Transport.send(...) but it throws the following error. but when i tried to send mail using sun.net.smtp.SmtpClient(..) it worked fine. i don't know what am i doing wrong please help me out... thanks in advance..... DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] DEBUG SMTP: useEhlo true, useAuth true DEBUG: SMTPTransport trying to connect to host "mail.test.com", port 25 DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server mail.test.com (IMail 6.05 40772-2) DEBUG: SMTPTransport connected to host "mail.test.com", port: 25 DEBU   More>>

hi gurus,



i am trying to send mail using SMTP , Transport.send(...) but it throws the following error. but when i tried to send mail using sun.net.smtp.SmtpClient(..) it worked fine. i don't know what am i doing wrong please help me out...

thanks in advance.....



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

DEBUG SMTP: useEhlo true, useAuth true


DEBUG: SMTPTransport trying to connect to host "mail.test.com", port 25


DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server mail.test.com (IMail 6.05 40772-2)


DEBUG: SMTPTransport connected to host "mail.test.com", port: 25


DEBUG SMTP SENT: EHLO pankaj01

DEBUG SMTP RCVD: 250-mail.test.com says hello




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

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: useEhlo true, useAuth true


DEBUG: SMTPTransport trying to connect to host "mail.test.com", port 25


DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server mail.test.com (IMail 6.05 40773-3)


DEBUG: SMTPTransport connected to host "mail.test.com", port: 25


DEBUG SMTP SENT: EHLO pankaj01

DEBUG SMTP RCVD: 250-mail.test.com says hello



DEBUG SMTP: use8bit false

DEBUG SMTP SENT: MAIL FROM:

DEBUG SMTP RCVD: 250-SIZE 0



DEBUG SMTP SENT: RCPT TO:

DEBUG SMTP RCVD: 250-8BITMIME



Verified Addresses

pankaj@test.com

DEBUG SMTP SENT: DATA

DEBUG SMTP RCVD: 250-DSN



DEBUG SMTP SENT: QUIT

javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 250-DSN



at javax.mail.Transport.send0(Transport.java:219)

at javax.mail.Transport.send(Transport.java:81)

at MailExample.main(MailExample.java:42)    <<Less

Re: i am able to read emails but not able to send it throws SendFailedException please help me .....

Posted By:   John_Zukowski  
Posted On:   Tuesday, July 24, 2001 06:26 PM

Perhaps you need to connect to YOUR SMTP server, not mail.test.com.
About | Sitemap | Contact