Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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 ]
Don't get me started about those stupid light bulbs.
subject: using google to send email by JavaMail
Similar Threads
problem in mailing with smtp server
How to configure localhost to send email.
Confusion in JavaMail
Java Mail Authentication
how to send email from java program