简体   繁体   中英

Sending emails with SendGrid from a logic app to multiple recipients

Is there a simple way to send emails from an Azure logic app using SendGrid to multiple recipients, eg comma-separated etc?

This is how it looks now:

       "actions": {
        "Send_email_(V3)": {
          "type": "ApiConnection",
          "inputs": {
            "host": {
              "connection": {
                "name": "@parameters('$connections')['sendgrid']['connectionId']"
              }
            },
            "method": "post",
            "body": {
              "from": "webserver@hotmail.com",
              "to": "firstaddress@somemail.com",
              "subject": "** My subject **",
              "text": "Some text",
              "ishtml": ""
            },
            "path": "/v3/mail/send"
          },

Is it possible to have

"to": "firstaddress@somemail.com, secondaddress@somemail.com"

?

The SendGrid V3 connector documentation states that you can separate the email addresses by comma in the To , CC or BCC fields:

Valid email addresses separated by a semicolon or comma

Checkout the documentation: SendGrid Connector

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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