Java桌面应用程序使用像gmail这样的web服务? [英] Java desktop application to use a webservice like gmail?

查看:77
本文介绍了Java桌面应用程序使用像gmail这样的web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我对Java有点新鲜,我想知道我是否可以创建一个java程序来登录像gmail这样的web服务, ymail还是那样的?有人可以给我一个示例代码吗?非常感谢:)

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 :)

推荐答案

你需要使用 Java套接字 [ ^ ]连接到服务器, SMTP协议 [ ^ ]发送消息,以及 POP3协议 [ ^ ]接收消息。谷歌和雅虎都有帮助页面,详细说明了使用邮件系统所需的设置。
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.


这篇关于Java桌面应用程序使用像gmail这样的web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆