如何在最终用户应用程序中使用SMTP和Gmail?

时间:2020-12-04 18:13:36

I am working on an application that requires communication via email with the user and the client for whom the application is being developed. Basically the flow is thus :

我正在开发一个应用程序,需要通过电子邮件与用户和正在为其开发应用程序的客户端进行通信。因此,流程基本上是:

  • Program Does Something
  • 程序有所作为

  • Program sends an email detailing if it worked or not to the user and my client
  • 程序会向用户和我的客户发送一封电子邮件,详细说明它是否有效

We have established a Gmail account to make this happen. Unfortunately my clients users are multinational and Gmail freaked out and started blocking users, which started throwing exceptions when they were trying to use the program.

我们已经建立了一个Gmail帐户来实现这一目标。不幸的是,我的客户用户是跨国公司,Gmail吓坏了并开始阻止用户,他们在尝试使用该程序时开始抛出异常。

In the emails I saw when I checked the account, I saw I see at least two of these emails that say "Suspicious sign in prevented", and there was a red bar that said multiple attempts were tried to sign in and asked if it was me, and there were points all over the world.

在我查看帐户时看到的电子邮件中,我看到我看到至少有两封电子邮件中写着“可疑登录被阻止”,并且有一个红色栏表示多次尝试登录并询问是否是我,全世界都有分。

How would I go about making it so that Gmail doesn't freak out when it sees users trying to sign in all over the planet?

如何让Gmail在看到用户试图在全球各地登录时不会惊慌失措?

1 个解决方案

#1


0  

Isn't sending through a some kind of a server application not an option? I.e. instead of making SMTP connection from your end user app directly to Gmail server your app sends a request to your web server which does actual SMTP connection. This way you'll also eliminate issues when SMTP ports are blocked on end users' machines.

是不是通过某种服务器应用程序发送不是一个选项?即而不是直接从最终用户应用程序到Gmail服务器进行SMTP连接,您的应用程序会向您的Web服务器发送请求,该服务器会进行实际的SMTP连接。这样,您还可以消除在最终用户的计算机上阻止SMTP端口时出现的问题。

#1


0  

Isn't sending through a some kind of a server application not an option? I.e. instead of making SMTP connection from your end user app directly to Gmail server your app sends a request to your web server which does actual SMTP connection. This way you'll also eliminate issues when SMTP ports are blocked on end users' machines.

是不是通过某种服务器应用程序发送不是一个选项?即而不是直接从最终用户应用程序到Gmail服务器进行SMTP连接,您的应用程序会向您的Web服务器发送请求,该服务器会进行实际的SMTP连接。这样,您还可以消除在最终用户的计算机上阻止SMTP端口时出现的问题。