| Author |
send email using gmail account
|
Harry Sunarsa
Greenhorn
Joined: Feb 15, 2012
Posts: 9
|
|
hi guys,
please help, I'm creating an application for sending an email that use gmail account as sender. but always return the exception, as shown below:
and here it is my program that i got from some forum
----
I have tried to use both port 465 & 587 but still always return error...
thanks in advance,
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Welcome to the Ranch! Can you please UseCodeTags next time? See how much easier your code is to read with them.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16482
|
|
|
The code which you scavenged from the web is out of date. Check out the JavaMail FAQ which has a section specifically about using GMail.
|
 |
 |
|
|
subject: send email using gmail account
|
|
|