Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with sending mail thorugh java api  RSS feed

 
ashwini kalmath
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i am generating email and sending it . it runs fine in development mode. but i get an error in deployment mode ....

CODE:


ERROR :
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)


Please help me out.

thank you
 
Aggarwal Arpit
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove these three lines and then try

 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nowadays there is no need to mess about with socket factories when you want to use JavaMail and Gmail to send your e-mail. Have a look at what the JavaMail FAQ says about that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!