This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes using google to send email by JavaMail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "using google to send email by JavaMail" Watch "using google to send email by JavaMail" New topic

using google to send email by JavaMail

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
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:>""
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 "", 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 ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: using google to send email by JavaMail
It's not a secret anymore!