Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Guys,

I'm a bit new to Java and I was wondering if I can make a java program to login to a web service like gmail,ymail or something like that? can someone give me an example code ? thanks a lot :)
Posted
Comments
Sudhakar Shinde 5-Jul-13 0:11am    
Use google to find out several examples for your requirement.
Shubhashish_Mandal 5-Jul-13 2:28am    
I think the name of this forum(CodeProject) makes people to believe that this the forum where they will get a readymade code. :)

1 solution

You need to use Java sockets[^] to connect to the server, SMTP protocol[^] to send the messages, and the POP3 protocol[^] to receive messages. Google and Yahoo have help pages which detail the settings necessary to use their mail systems.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900