Gmail将使用Gmail API发送的电子邮件标记为“欺诈" [英] Emails sent using Gmail API are being flagged as phishy by Gmail
问题描述
当我使用 Gmail API 发送电子邮件时,使用Gmail网络界面的收件人在打开电子邮件时会收到phishing
警告.
When I send an email using the Gmail API, recipients that are using the Gmail web interface are getting a phishing
warning when they open the email.
但是,当我通过相同的Gmail帐户但使用网络用户界面发送完全相同的电子邮件内容时,收件人不会收到phishing
警告.
However, when I send the exact same email content through the same Gmail account but using the web UI, the recipients do not get the phishing
warning.
我能在收到的两封电子邮件中发现的唯一区别是,使用API发送的一封电子邮件具有以下附加标头:
The only difference I can find between the two received emails, is that the one sent using the API has this additional header:
Received: from 114692869688 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Jun 2019 11:37:51 -0500
有人知道如何解决此问题吗?
Does anyone know how to resolve this problem?
推荐答案
有两个选项:
- 通过Gmail SMTP(简单邮件传输协议,一种用于在服务器之间发送电子邮件的协议)发送电子邮件
- 使用Gmail授权应用-对Gmail的所有请求API必须由经过身份验证的用户授权. Gmail使用OAuth 2.0协议对Google帐户进行身份验证并授权对用户数据的访问.
- Send an email through Gmail SMTP (Simple Mail Transfer Protocol, a protocol for sending e-mail messages between servers)
- Authorizing Your App with Gmail - All requests to the Gmail API must be authorized by an authenticated user. Gmail uses the OAuth 2.0 protocol for authenticating a Google account and authorizing access to user data.
收到一封看起来可疑的电子邮件时,请注意以下事项检查:
When you get an email that looks suspicious, here are a few things to check for:
- 检查电子邮件地址和发件人姓名是否匹配.
- 检查电子邮件是否已认证.
- 将鼠标悬停在任何链接上,然后再单击它们.如果该链接的URL与该链接的描述不匹配,则可能会导致您进入钓鱼网站.
- 检查消息标头,以确保没有"from"标头显示的名称不正确.**
- Check that the email address and the sender name match.
- Check if the email is authenticated.
- Hover over any links before you click on them. If the URL of the link doesn't match the description of the link, it might be leading you to a phishing site.
- Check the message headers to make sure the "from" header isn't showing an incorrect name.**
是的,使用Gmail API发送电子邮件时,邮件标题很重要.您将需要跟踪具有完整标题的电子邮件.
Yes, the message header is important when sending an email using Gmail API. You will need to trace an email with its full headers.
这篇关于Gmail将使用Gmail API发送的电子邮件标记为“欺诈"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!