-
June 13th, 2011, 08:19 AM
#1
Send e-mail through Gmail using Java
Hi Everybody,
I'm new here and a fresh Java developer.
I got a question on my class to write a code to send e-mail through Gmail using Java, I searched the web for some source code to learn from but couldn't find a code that works.
Can someone help me with it?
Thanks in adavnce,
Stav.
-
June 13th, 2011, 09:25 AM
#2
Re: Send e-mail through Gmail using Java
-
June 13th, 2011, 11:47 AM
#3
Re: Send e-mail through Gmail using Java
Originally Posted by keang
what do you think?
I tried a lot of **** but nothing seems to work.
-
June 13th, 2011, 05:17 PM
#4
Re: Send e-mail through Gmail using Java
Well when I did that there were several articles explaining how to do what you want and, whilst I may be wrong, I find it hard to believe that they all don't work.
I suggest you show us the code you have tried and reference the article you have based it on so we can see what you are doing. Also explain what the code did/didn't do and post any error messages.
-
June 21st, 2011, 10:00 PM
#5
Re: Send e-mail through Gmail using Java
Hi,
Sending of mails from java can be done by using the javax.mail API .
Try this link.
http://java.sun.com/developer/onlineTraining/JavaMail
Also make sure that you install an SMTP server before trying to send a mail.
Regards,
Ramnath.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|