- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
到目前为止,我一直在我的 LoopBack
应用中通过 Sakura Japan SMTP 服务器向多个收件人发送电子邮件。
{
"emailDs": {
"name": "emailDs",
"connector": "mail",
"transports": [{
"type": "smtp",
"host": "myapp.sakura.ne.jp",
"secure": false,
"port": 587,
"tls": {
"rejectUnauthorized": false
},
"auth": {
"user": "~ ~ ~.sakura.ne.jp",
"pass": "~ ~ ~"
}
}]
}
}
<小时/>It's almost working properly unless the number of recipients is much less than 100. But it won't work when the number quite over 100 - e.g. 150.
因此,我将迁移 AWS SES
,但我想知道仅由于 following quotation 的原因,收件人数量是否会有任何限制 :
The message cannot include more than 50 recipients, across the To:, CC: and BCC: fields. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call the sendEmail method several times to send the message to each group.
所以,如果您有过这样的经历,请告诉我收件人数量是否有限制。
提前致谢。
PS:这里是AWS SES
的示例代码:
// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Set the region
AWS.config.update({region: 'REGION'});
// Create sendBulkTemplatedEmail params
var params = {
Destinations: [ /* required */
{
Destination: { /* required */
CcAddresses: [
'EMAIL_ADDRESS',
/* more items */
],
ToAddresses: [
'EMAIL_ADDRESS',
'EMAIL_ADDRESS'
/* more items */
]
},
ReplacementTemplateData: '{ \"REPLACEMENT_TAG_NAME\":\"REPLACEMENT_VALUE\" }'
},
],
Source: 'EMAIL_ADDRESS', /* required */
Template: 'TEMPLATE_NAME', /* required */
DefaultTemplateData: '{ \"REPLACEMENT_TAG_NAME\":\"REPLACEMENT_VALUE\" }',
ReplyToAddresses: [
'EMAIL_ADDRESS'
]
};
// Create the promise and SES service object
var sendPromise = new AWS.SES({apiVersion: '2010-12-01'}).sendBulkTemplatedEmail(params).promise();
// Handle promise's fulfilled/rejected states
sendPromise.then(
function(data) {
console.log(data);
}).catch(
function(err) {
console.log(err, err.stack);
});
最佳答案
根据AWS SES
documentation ,我认为我可以使用 AWS JS SDK 的 sendBulkTemplatedEmail()
函数发送没有任何限制的批量邮件。
<小时/>Create an object to pass the parameter values that define the email to be sent, including sender and receiver addresses, subject, email body in plain text and HTML formats, to the sendBulkTemplatedEmail method of the AWS.SES client class. To call the sendBulkTemplatedEmail method, create a promise for invoking an Amazon SES service object, passing the parameters. Then handle the response in the promise callback.
但是,以下 2 个链接向我解释了生产生命周期的不同解决方法,因为甚至有 50 个收件人的技术限制。
AWS SES SendBulkTemplatedEmail, example and what happens if quota is exceeded?
Managing Your Amazon SES Sending Limits
因此,AWS SES
建议我为每个收件人调用一次 sendEmail()
。
<小时/>Sending limits are based on recipients rather than on messages. For example, an email that has 10 recipients counts as 10 against your quota. However, we do not recommend that you send an email to multiple recipients in one call to SendEmail because if the call to Amazon SES fails (for example, the request is improperly formatted), the entire email will be rejected and none of the recipients will get the intended email. We recommend that you call SendEmail once for every recipient.
长话短说,
sendBulkTemplatedEmail()
发送批量邮件时,存在 50 个收件人的技术限制感谢您的关注。
关于Node.js(LoopBack 3) - 我可以通过 AWS SES 向多少个收件人发送电子邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56707133/
我正在尝试将扩展的环回用户模型与 loopback-component-passport 一起用于 facebook 登录。登录本身是有效的,但我无法让它使用我的自定义用户模型而不是内置的“用户”。
用于文件(或文件)上传的 loopback-component-storage 文档是这样说的: loopback documentation 描述: Upload one or more files
在 lib/models/user-identity.js 中 function profileToUser(provider, profile, options) { // Let's c
我已在 iisnode Windows Web 应用程序上托管了我的环回 4 应用程序,该应用程序将端口作为管道提供,在我的环回 4 应用程序中,我将端口读取为 Process.env.PORT。我收
我使用环回来生成我的 api 和 AngularJS 来与之通信。我有一个模型叫 Sync包含以下记录: Sync": { "34": "{\"uuid\":\"287c6625-4a95-4e11-
我关注了Loopback4 datasources文档并放置 sample.datasource.json 和 sample.test.datasource.json 下的文件src/数据源 .每当我
如何在 Loopback 中定义 decimal(10,2)?我查看了 api 和示例,但无法正常工作。它只是不断地创建一个小数(10,0)。 columnName 确实会影响输出,但未设置精度和比例
我正在使用 Loopback,我想创建一个记录上传数量的上传接口(interface)。我将自己的模型与存储组件一起使用。 我正在使用存储组件的上传功能,并且我想在上传成功后更新对象属性“upload
场景是, 删除用户时,我们只是将名为“状态”的字段更新为 -1。 但是,在添加具有已删除电子邮件 ID 的用户时,内置的环回用户模型会抛出错误,因为电子邮件已存在,因为它仅检查电子邮件是否存在。我想检
我正在使用 Loopback 3 开发一个应用。我在 ServiceEvaluation 模型上创建了一个远程方法,以返回服务模型中的 ServiceEvaluations 和相关属性的列表。 Ser
我正在使用环回。在名为 Report 的模型中创建一个名为 stats 的新方法。我想在另一个名为 Acount 的模型中创建相同的方法,但参数是 id。 模型报告: Report.remoteMet
如何在环回中创建动态模型,而不是对所有模型使用命令“lb model”。 例如: 如果我想创建 30 个具有几乎相同属性的模型,那么会遇到一次又一次创建所有 30 个模型和那些相应属性的麻烦。 是否可
如何在环回中创建动态模型,而不是对所有模型使用命令“lb model”。 例如: 如果我想创建 30 个具有几乎相同属性的模型,那么会遇到一次又一次创建所有 30 个模型和那些相应属性的麻烦。 是否可
我正在开发一个环回项目,我有一个名为 Depot 的模型,它有一个字段 likersList,该字段是一个字符串数组(用户 id)我想找到其 likersList 中没有特定 userId 的所有 D
我很难理解 Loopback 4 中 Repositories 的概念,文档说: A Repository represents a specialized Service interface tha
所以我有下表: external_user_has_survey_question_answer 此表与表有 belongsTo 关系: external_user 现在我正在尝试查询 member_
我将 Loopback 3 与 Mysql 结合使用。我们使用动态数据模型。例如,包含“管理员”或“用户”等类型的 UserAnswers。我想为类型的 countOfAnswers 字段添加答案计数
我有一个环回应用程序,我希望能够在 API 调用中包含来自关系的计算属性。例如,假设我有一个 apartment 模型和一个 address 模型。 address 具有属性 city 和 state
对于某些端点,我在调用时返回一个函数而不是实际值(最后的代码)。看起来它只出现在我的 Patient 模型中的嵌套端点上。 例如localhost:3000/api/Patients/{id}/Mea
我是环回平台的新手。我按照这个教程loop-back official tutorial for third-party和本教程 also a tutorial that i find 。我想要做的是
我是一名优秀的程序员,十分优秀!