我想在我的网站上使用Gmail发送和接收邮件。我该如何实现? [英] I want to use Gmail within my website to send and receive mails. How can i Achieve that?

查看:633
本文介绍了我想在我的网站上使用Gmail发送和接收邮件。我该如何实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用JAVA SPRING和HIBERNATE 编写的网站。我想将gmail整合到我的网站中,我的登录用户可以在我的网站上使用他们的Gmail。我该怎么做?

I am having a website written in JAVA SPRING and HIBERNATE. I want to integrate gmail as apart of my website where my logged in users can use their gmail within my website. How can i do this?

有没有办法使用gmail创建任何邮件服务器?

Is there any way to create any mail server instead using gmail?

无论如何我的目标是在登录的用户中发送和接收邮件,如果这是通过gmail coz实现的,一切都很酷。

Anyway my aim is to send and receive mails within the logged in users, it will be helpful if that is achieved by gmail coz everything is cool there.

推荐答案

为了做到这一点,您需要在google上关注OAUTH2的文档。

In order to do that, you need to follow the documentation for OAUTH2 at google.

https://developers.google.com/ gmail / xoauth2_protocol

一旦您有权访问他们的帐户,您可以代表他们发送和接收邮件。让用户授予您访问其帐户的权限将是一个挑战。

Once you have access to their account, you can send and receive mail on their behalf. Getting users to grant you access to their accounts will be a challenge.

这篇关于我想在我的网站上使用Gmail发送和接收邮件。我该如何实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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