简体   繁体   English

Appcelerator ArrowDB Cloud.Emails.send不发送电子邮件

[英]Appcelerator ArrowDB Cloud.Emails.send not sending emails

I have successfully setup the SMTP. 我已经成功设置了SMTP。 When SMTP is setup I did receive an email with subject "[AMPLIFY Platform] Mobile Backend Services SMTP Test" 设置SMTP后,我确实收到了主题为“ [AMPLIFY Platform]移动后端服务SMTP测试”的电子邮件。

Then I have called Cloud.Emails.send with valid recipient email address. 然后,我使用有效的收件人电子邮件地址调用了Cloud.Emails.send。 API call also return below response: {"success":true,"error":false,"meta":{"status":"ok","code":200,"method_name":"emailFromTemplate"}} But I do not receive any email. API调用还返回以下响应:{“成功”:true,“错误”:false,“元”:{“状态”:“确定”,“代码”:200,“方法名”:“ emailFromTemplate”}}但是我没有收到任何电子邮件。 I am testing in "Development" environment. 我正在“开发”环境中进行测试。

Anyone have this issue with Appcelerator ArrowDB Emails. 任何人都有Appcelerator ArrowDB电子邮件出现此问题。

I am able to resolve the issue. 我能够解决问题。 It seems that Gmail was blocking emails. Gmail似乎阻止了电子邮件。 Initially, I setup SMTP by enabling "less secure apps access your account". 最初,我通过启用“安全性较低的应用访问您的帐户”来设置SMTP。 Also allows access to security check prompts too. 还允许访问安全检查提示。 But wasn't receiving any emails and Appcelerator return success response. 但是没有收到任何电子邮件,Appcelerator返回成功响应。 Then I have created App password and used it in SMTP. 然后,我创建了应用程序密码并在SMTP中使用了它。 Now everything works fine. 现在一切正常。 App password should be the correct way to use Gmail SMTP. 应用密码应该是使用Gmail SMTP的正确方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM