Error while sending mail
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   yugandhar_yandapalli
Posted On:   Tuesday, January 8, 2002 01:47 AM

When I tried to send mail through java mail API, It is giving the following output. DEBUG: not loading system providers in /lib DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/Program Files/Allaire/JRun/lib/ext/pop3.jar!/META-INF/javamail.providers DEBUG: successfully loaded default providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.s   More>>

When I tried to send mail through java mail API, It is giving the following output.


DEBUG: not loading system providers in /lib


DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/Program Files/Allaire/JRun/lib/ext/pop3.jar!/META-INF/javamail.providers


DEBUG: successfully loaded default providers


DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: not loading optional address map file: /META-INF/javamail.address.map


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 "hostname", port 25


DEBUG SMTP RCVD: 220 krishna - Ready at Tuesday, 08 January 2002, 14:50:40


DEBUG: SMTPTransport connected to host "hostname", port: 25


DEBUG SMTP SENT: EHLO localhost


DEBUG SMTP RCVD: 250-krishna EHLO yyreddy

250 SIZE 20480000


DEBUG SMTP SENT: MAIL FROM: <"from address">


DEBUG SMTP RCVD: 501 Address Syntax Error in <"from Address">


DEBUG SMTP SENT: QUIT


Error: Sending failed;
nested exception is:
javax.mail.MessagingException: 501 Address Syntax Error in <"from Address">

   <<Less

Re: Error while sending mail

Posted By:   John_Zukowski  
Posted On:   Tuesday, January 8, 2002 11:55 AM

I would say your from address isn't formatted properly. Fix it and try again.
About | Sitemap | Contact