【发布时间】:2018-10-06 00:00:44
【问题描述】:
(关于这个问题的完整版本,请参考 https://social.msdn.microsoft.com/Forums/en-US/20bb5b37-82af-4cf3-8a59-04e5f19572bc/send-email-to-multiple-recipients-using-sendgrid-failure?forum=AzureFunctions)
发送给单个收件人成功。但在 Azure 功能中无法发送给多个收件人或抄送/密送。
尝试了几种格式,包括
{ "to": [{ "email": ["john.doe@example.com", "sendgridtesting@gmail.com" ] }] }
这似乎是天蓝色功能的限制。但还不确定哪里出了问题。请参考下面的“绑定”,
{
"bindings": [
{
"name": "telemetryEvent",
"type": "serviceBusTrigger",
"direction": "in",
"queueName": "threshold-email-queue",
"connection": "RootManageSharedAccessKey_SERVICEBUS",
"accessRights": "Manage"
},
{
"type": "sendGrid",
"name": "$return",
"apiKey": "SendGridKey",
"direction": "out",
"from": "ABC@sample.com",
"to": [{
"email": ["test1@sample1.com", "test2@sample2.com" ]
}]
}
],
"disabled": false
}
【问题讨论】:
标签: c# azure azure-functions sendgrid sendgrid-api-v3