Published on Mon, 06 Nov 2006 09:07:31 -0500 Read: 23463 times
This is very good example ..just copy and paste and just change username and password in sendMail function call ... Add as much of to ,cc, bcc addresses.. Try now
Published on Wed, 22 Aug 2007 04:01:13 -0400 Read: 3328 times
Gmail updated their smtp way of sending mail...
Connection time out error occurs for normal way of sending mails...
1)Where activation.jar and mail.jar should be in the same folder of java and class files
2) Go to the directory in command prompt or shell */ javac -d . -classpath activation.jar;mail.jar