aspose file tools*
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 Spring in Action this week in the Spring 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
Author

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:
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using google to send email by JavaMail