• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Must issue a starttls command

 
Chetan Sharma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using the above code and getting the error must issue a starttls command first. Please help
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaEnterpriseEditionFaq answers this.
 
Chetan Sharma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It mentions in there to set the property mail.smtps.starttls.enable equal to true as you can see it in the code I have already done so but still I am getting the same error. Please help.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking at that document, I don't think that user and email address are the same - the former doesn't have the "@gmail.com" suffix.
 
Chetan Sharma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry that does not work. I removed @gmail.com suffix but still getting the same error.
 
Kedar Bhise
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chetan,

I copied your code into Eclipse and tried it out. Worked flawlessly on the first try. Thus, seems like nothing is wrong with your code and the properties you are setting up.

My (sanitised) DEBUG log follows:



Perhaps, some missing libraries?

Kedar P Bhise
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic