Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using google to send email by JavaMail

 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ranchers...
Iam testing JavaMail Sample, the sample found here ,iam using the class named TestMail at that page...i made changes on toAddress, and fromAddress,amd using google smtp as follows:
mail.smtp.host--------->"smtp.gmail.com"
mail.smtp.port--------->465
And this is the Code:


when i activate debugging using "mail.debug", "true" , it show at console the following line
EBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false
then waiting and waiting.........too long time waiting,but no result..
can you help me?
[ November 22, 2006: Message edited by: Ala'a Hendi ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic