简体   繁体   English

在MongoDB Stitch App中使用AWS ESS服务时获取区域错误

[英]Getting region error while using aws ses service in mongodb stitch app

I am using AWS SES service for sending email in stitch App of mongodb. 我正在使用AWS SES服务在mongodb的stitch App中发送电子邮件。 my stitch app is registered on region Oregon (us-west-2). 我的绣花应用已在俄勒冈州(us-west-2)上注册。 but when I send email every time I get this type of error. 但是每次我发送电子邮件时,都会出现此类错误。 在此处输入图片说明 I want to know that my application is registered on Oregon (us-west-2) but why i am getting error related to US-EAST-1. 我想知道我的应用程序已在俄勒冈州(us-west-2)上注册,但是为什么我遇到与US-EAST-1相关的错误。

StitchError: MessageRejected: Email address is not verified. StitchError:MessageRejected:电子邮件地址未验证。 The following identities failed the check in region US-EAST-1: muhazzib7@gmail.com status code: 400, request id: 1e7cc347-fc56-11e8-8fd9-47e8eaf4f2d3 以下身份未能通过区域US-EAST-1的检查:muhazzib7@gmail.com状态代码:400,请求ID:1e7cc347-fc56-11e8-8fd9-47e8eaf4f2d3

The aws service will default to US-EAST-1, not the region that your app is in. You must input the region when you call the service like: context.services.get("aws").ses("us-west-2").SendEmail({...}) . aws服务将默认为US-EAST-1,而不是应用程序所在的区域。调用该服务时,您必须输入该区域,例如: context.services.get("aws").ses("us-west-2").SendEmail({...})

You also have to make sure that you verify the email address with Amazon for each region that you want to use it with. 您还必须确保您要与Amazon一起使用的每个区域验证电子邮件地址。 Here's some docs on sending failures. 这是有关发送失败的一些文档

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

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