{
    "componentChunkName": "component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js",
    "path": "/docs/destinations/marketing/sendgrid/",
    "result": {"data":{"mdx":{"id":"56c94cba-daca-5440-8be9-94c97050167e","excerpt":"SendGrid SendGrid  is a cloud-based email marketing platform built for marketers and developers. It helps businesses deliver billions of transactional and…","fields":{"slug":"/docs/destinations/marketing/sendgrid/"},"frontmatter":{"title":"SendGrid","description":"Step-by-step guide to send your event data from RudderStack to SendGrid.","image":null,"disableTableOfContents":null},"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"SendGrid\",\n  \"description\": \"Step-by-step guide to send your event data from RudderStack to SendGrid.\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h1\", {\n    \"id\": \"sendgrid\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h1\",\n    \"href\": \"#sendgrid\",\n    \"aria-label\": \"sendgrid permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"SendGrid\"), mdx(\"p\", null, mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://sendgrid.com/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"SendGrid\")), \" is a cloud-based email marketing platform built for marketers and developers. It helps businesses deliver billions of transactional and marketing emails every month.\"), mdx(\"p\", null, \"RudderStack supports SendGrid as a destination to which you can seamlessly send your customer data.\"), mdx(\"h2\", {\n    \"id\": \"getting-started\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#getting-started\",\n    \"aria-label\": \"getting started permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Getting started\"), mdx(\"p\", null, \"Before configuring SendGrid as a destination in RudderStack, verify if the source platform is supported by SendGrid by referring to the table below:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Connection Mode\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Web\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Mobile\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Server\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Device mode\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Cloud mode\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Supported\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Supported\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Supported\"))))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"To know more about the difference between cloud mode and device mode in RudderStack, refer to the \", mdx(\"a\", {\n    href: \"https://rudderstack.com/docs/connections/rudderstack-connection-modes/\"\n  }, \"RudderStack Connection Modes\"), \" guide.\"), mdx(\"p\", null, \"Once you have confirmed that your source platform supports sending events to SendGrid, follow these steps:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"From your \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://app.rudderstack.com/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"RudderStack dashboard\")), \", add the source. From the list of destinations, select \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"SendGrid\"), \".\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"Follow our guide on \", mdx(\"a\", {\n    href: \"https://rudderstack.com/docs/connections/adding-source-and-destination-rudderstack/\"\n  }, \"Adding a Source and Destination in RudderStack\"), \" for more information.\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Assign a name to the destination and click on \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Next\"), \". You should then see the following screen:\")), mdx(\"undefined\", null, mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"699px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"122.49999999999999%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/webp;base64,UklGRp4AAABXRUJQVlA4IJIAAACwBACdASoUABkAPjEUiEKiISEYDAQAIAMEs4BgbsXhN/fQGeTVJBUYUh2RTjwAAP7/t2ZTlPAdhogzcCXfecupInir8qPcNCi2DxBtQG9gV8AOwUQKPiHwAYEDqgKe+5OkF7OtgQpiDn21+IgSVWi9uJLBvM4oVryvMbiec/F3q0sXjJOq+wpS/34iWJUwAAAAAA==')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"picture\", {\n    parentName: \"span\"\n  }, \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/fbc16750f29241c3d5bd2324fd13297e/cbea2/sendgrid-connection-settings-1.webp 240w\", \"/static/fbc16750f29241c3d5bd2324fd13297e/42669/sendgrid-connection-settings-1.webp 480w\", \"/static/fbc16750f29241c3d5bd2324fd13297e/179fa/sendgrid-connection-settings-1.webp 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/webp\"\n  }), \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/fbc16750f29241c3d5bd2324fd13297e/5243c/sendgrid-connection-settings-1.png 240w\", \"/static/fbc16750f29241c3d5bd2324fd13297e/ab158/sendgrid-connection-settings-1.png 480w\", \"/static/fbc16750f29241c3d5bd2324fd13297e/0f854/sendgrid-connection-settings-1.png 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/png\"\n  }), \"\\n          \", mdx(\"img\", {\n    parentName: \"picture\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"src\": \"/static/fbc16750f29241c3d5bd2324fd13297e/0f854/sendgrid-connection-settings-1.png\",\n    \"alt\": \"Sendgrid connection settings\",\n    \"title\": \"Sendgrid connection settings\",\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    }\n  }), \"\\n        \"), \"\\n    \"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"699px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"79.16666666666667%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/webp;base64,UklGRlIAAABXRUJQVlA4IEYAAAAwAwCdASoUABAAPjEUiEKiISEYBAAgAwS0gAAw5hZHa0AAAP7/r5sMXWznRkTjeYJ1jBLUzy1pAu0Hji0nAB0u3B0CHAAA')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"picture\", {\n    parentName: \"span\"\n  }, \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/a780179344e1052c9b71ad0299dbc5eb/cbea2/sendgrid-connection-settings-2.webp 240w\", \"/static/a780179344e1052c9b71ad0299dbc5eb/42669/sendgrid-connection-settings-2.webp 480w\", \"/static/a780179344e1052c9b71ad0299dbc5eb/179fa/sendgrid-connection-settings-2.webp 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/webp\"\n  }), \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/a780179344e1052c9b71ad0299dbc5eb/5243c/sendgrid-connection-settings-2.png 240w\", \"/static/a780179344e1052c9b71ad0299dbc5eb/ab158/sendgrid-connection-settings-2.png 480w\", \"/static/a780179344e1052c9b71ad0299dbc5eb/0f854/sendgrid-connection-settings-2.png 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/png\"\n  }), \"\\n          \", mdx(\"img\", {\n    parentName: \"picture\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"src\": \"/static/a780179344e1052c9b71ad0299dbc5eb/0f854/sendgrid-connection-settings-2.png\",\n    \"alt\": \"Sendgrid connection settings\",\n    \"title\": \"Sendgrid connection settings\",\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    }\n  }), \"\\n        \"), \"\\n    \"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"699px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"143.33333333333334%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/webp;base64,UklGRnwAAABXRUJQVlA4IHAAAADQAwCdASoUAB0APjEWiUOiISEUBAAgAwS0gAHyiHg24k8Ek460zgAA/v+vnOp6j/woY8szIinyU+8OlDibHIoSwW0/BcGLJXVosbjc+jbmH+ZDnBbWbclObYGzwe628KicREberp1GfPh0JVw2FQAA')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"picture\", {\n    parentName: \"span\"\n  }, \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/86a5c20f71696e394a5f5c60298b3aee/cbea2/sendgrid-connection-settings-3.webp 240w\", \"/static/86a5c20f71696e394a5f5c60298b3aee/42669/sendgrid-connection-settings-3.webp 480w\", \"/static/86a5c20f71696e394a5f5c60298b3aee/179fa/sendgrid-connection-settings-3.webp 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/webp\"\n  }), \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/86a5c20f71696e394a5f5c60298b3aee/5243c/sendgrid-connection-settings-3.png 240w\", \"/static/86a5c20f71696e394a5f5c60298b3aee/ab158/sendgrid-connection-settings-3.png 480w\", \"/static/86a5c20f71696e394a5f5c60298b3aee/0f854/sendgrid-connection-settings-3.png 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/png\"\n  }), \"\\n          \", mdx(\"img\", {\n    parentName: \"picture\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"src\": \"/static/86a5c20f71696e394a5f5c60298b3aee/0f854/sendgrid-connection-settings-3.png\",\n    \"alt\": \"Sendgrid connection settings\",\n    \"title\": \"Sendgrid connection settings\",\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    }\n  }), \"\\n        \"), \"\\n    \"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"699px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"140%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/webp;base64,UklGRogAAABXRUJQVlA4IHwAAABwBACdASoUABwAPjEYiUOiIaEUBAAgAwS0gAHxpIaPnHIkfPL2nRJuzwvJgAD+/6+bAEUf4hABtXMdcA6x6drPPjfp8srZcyd2m/XEreUxrWCupkRYp9bJm4/UBGeFeoeacAsPVmy01U9xTl5zQM+xA6jm8MMpscqrgAAA')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"picture\", {\n    parentName: \"span\"\n  }, \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/8f7c143561f607aa3b297809bbfefff9/cbea2/sendgrid-connection-settings-4.webp 240w\", \"/static/8f7c143561f607aa3b297809bbfefff9/42669/sendgrid-connection-settings-4.webp 480w\", \"/static/8f7c143561f607aa3b297809bbfefff9/179fa/sendgrid-connection-settings-4.webp 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/webp\"\n  }), \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/8f7c143561f607aa3b297809bbfefff9/5243c/sendgrid-connection-settings-4.png 240w\", \"/static/8f7c143561f607aa3b297809bbfefff9/ab158/sendgrid-connection-settings-4.png 480w\", \"/static/8f7c143561f607aa3b297809bbfefff9/0f854/sendgrid-connection-settings-4.png 699w\"],\n    \"sizes\": \"(max-width: 699px) 100vw, 699px\",\n    \"type\": \"image/png\"\n  }), \"\\n          \", mdx(\"img\", {\n    parentName: \"picture\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"src\": \"/static/8f7c143561f607aa3b297809bbfefff9/0f854/sendgrid-connection-settings-4.png\",\n    \"alt\": \"Sendgrid connection settings\",\n    \"title\": \"Sendgrid connection settings\",\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    }\n  }), \"\\n        \"), \"\\n    \")), mdx(\"h3\", {\n    \"id\": \"connection-settings\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#connection-settings\",\n    \"aria-label\": \"connection settings permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Connection settings\"), mdx(\"p\", null, \"The connection settings required to configure SendGrid as a destination in RudderStack are listed below:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Enter your SendGrid \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"API Key\"), \".\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"To get the SendGrid API Key, click \", mdx(\"a\", {\n    href: \"https://app.sendgrid.com/settings/api_keys\"\n  }, \"here\"), \".\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Enter the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Subject\"), \".\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"You can also send the Email subject via the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"subject\"), \" field in the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" properties. For more information, refer to the \", mdx(\"a\", {\n    href: \"https://rudderstack.com/docs/destinations/marketing/sendgrid/#track\"\n  }, \"Track\"), \" section below.\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Next, enter the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Template ID\"), \". \")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"To get your template ID or create a new one, go to your \", mdx(\"a\", {\n    href: \"https://app.sendgrid.com/\"\n  }, \"SendGrid dashboard\"), \". Then, click on \", mdx(\"strong\", null, \"Email API\"), \" and go to \", mdx(\"strong\", null, \"Dynamic Templates\"), \".\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"You can also set the Template ID via the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"templateId\"), \" field in the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" properties. Note that the template ID passed in the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" properties will override the \", mdx(\"strong\", null, \"Template ID\"), \" field specified in the RudderStack dashboard.\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Next, you can enable or disable the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Get email ID by traits\"), \" option. If enabled, RudderStack searches for the user's \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"email\"), \" inside the user's \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"traits\"), \". If it is found, then the event can be sent to SendGrid without any \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"track\"), \" call properties.\")), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, \"This option is only useful when the properties in the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" are empty. SendGrid also requires either the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"templateId\"), \" or \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"content\"), \" to be present for a successful event delivery.\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"Enter the email address in the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Reply-To Email\"), \" option, where the email ID replies or bounces will be returned.\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"In \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Reply-To Name\"), \" , enter the user's name associated with the above email address.\"))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"You can also send the email ID and name inside \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"replyTo\"), \" in the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" properties. Note that these fields will override the \", mdx(\"strong\", null, \"Reply-To Email\"), \" and \", mdx(\"strong\", null, \"Reply-To Name\"), \" fields set in the RudderStack dashboard.\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"For more information on how to send these details via the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"replyTo\"), \" object, refer to the refer to the \", mdx(\"a\", {\n    href: \"https://rudderstack.com/docs/destinations/marketing/sendgrid/#replyto\"\n  }, \"replyTo\"), \" section below.\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Next, enter the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"IP Pool Name\"), \".\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"The length of the IP Pool Name must be between 2 and 64 characters. For detailed steps on creating the IP pool name, refer to the \", mdx(\"a\", {\n    href: \"https://docs.sendgrid.com/ui/account-and-settings/ip-pools#create-an-ip-pool\"\n  }, \"SendGrid documentation\"), \".\"), mdx(\"h4\", {\n    \"id\": \"from\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#from\",\n    \"aria-label\": \"from permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"From\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Enter the user's \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Email\"), \" address through which the email will be sent.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"For more information on creating a verified sender identity, refer to this \", mdx(\"a\", {\n    href: \"https://docs.sendgrid.com/ui/sending-email/sender-verification\"\n  }, \"SendGrid documentation\"), \".\")), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Enter the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Name\"), \" associated with above email ID.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"You can also include \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"email\"), \" and \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"name\"), \" inside the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"from\"), \" object in the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" call (shown below). Note that this will override the \", mdx(\"strong\", null, \"Email\"), \" and \", mdx(\"strong\", null, \"Name\"), \" fields specified in the RudderStack dashboard.\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"from:{\\n    \\\"email\\\": \\\"test@email.com\\\",\\n    \\\"name\\\": \\\"test\\\"\\n}\\n\")), mdx(\"h4\", {\n    \"id\": \"event-names\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#event-names\",\n    \"aria-label\": \"event names permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Event names\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Next, create the list of \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"events\"), \" for which the \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"track\"), \" calls will be made.\")), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, mdx(\"p\", null, \"Any \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" call made with an event name that is not specified in this list will be \", mdx(\"strong\", null, \"discarded\"), \".\")), mdx(\"h4\", {\n    \"id\": \"content\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#content\",\n    \"aria-label\": \"content permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Content\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"To specify the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"content\"), \" of your email, enter the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"type\"), \" and \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"value\"), \".\"), mdx(\"ul\", {\n    parentName: \"li\"\n  }, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"The \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"type\"), \" field is the value type to be included in the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"value\"), \" field.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"The \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"value\"), \" field contains the actual value that is to be included in the email.\")))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"The \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"content\"), \" array can also be sent via \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" properties (shown below), which will override the dashboard settings.\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"content: [\\n    {\\n        \\\"type\\\": \\\"text/plain\\\",\\n        \\\"value\\\": \\\"sample text\\\"\\n    }\\n]\\n\")), mdx(\"h4\", {\n    \"id\": \"attachments\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#attachments\",\n    \"aria-label\": \"attachments permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Attachments\"), mdx(\"p\", null, \"Use the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Attachments\"), \" settings to specify any attachments you want to include in your email. The individual settings are as follows:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"content\"), \": This should be a Base64-encoded string.\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"type\"), \": The attachment \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"type\"), \" contains the type of content you are attaching e.g. \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"\\\"text/plain\\\"\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"\\\"text/html\\\"\"), \", etc.\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"filename\"), \": Use this setting to specify the attachment's file name.\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"disposition\"), \": This option specifies how you would like the attachment to be displayed.\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"content ID\"), \": Use this option when \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"disposition\"), \" is set to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"inline\"), \" and the attachment is an image.\"))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"SendGrid requires that each attachment element must contain \", mdx(\"strong\", null, \"content\"), \" and \", mdx(\"strong\", null, \"filename\"), \". The attachments can also be sent via the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" call (shown below), which will override the dashboard settings.\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"attachments:[\\n    {\\n        \\\"content\\\": \\\"base64encodedString\\\",\\n        \\\"filename\\\": \\\"index.html\\\",\\n        \\\"type\\\": \\\"text/html\\\",\\n        \\\"disposition\\\": \\\"attachment\\\"\\n    }\\n]\\n\")), mdx(\"h4\", {\n    \"id\": \"asm\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#asm\",\n    \"aria-label\": \"asm permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"ASM\"), mdx(\"p\", null, \"The \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"ASM\"), \" settings allow you to handle the user's unsubscribing activity. The configurable options are:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Group ID\"), \": This option specifies the unsubscribe group to associate with this email.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Groups\"), \": This option contains the array of unsubscribing groups that would be displayed in the unsusbcribing preferences page.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"SendGrid requires that the \", mdx(\"strong\", null, \"Group ID\"), \" should always be present if the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"asm\"), \" object is to be sent.\")), mdx(\"h4\", {\n    \"id\": \"email-settings\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#email-settings\",\n    \"aria-label\": \"email settings permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Email settings\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"To include a default footer in every mail, enable the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Footer\"), \" option. When enabled, the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"text\"), \" option contains the plain content of footer. The \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"HTML\"), \" contains the HTML content of footer.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"The footer can also be sent via \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" properties (shown below), which will override the dashboard settings.\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"mailSettings:{\\n    \\\"footer\\\": true,\\n    \\\"footerText\\\": \\\"plain text\\\",\\n    \\\"footerHtml\\\": \\\"html content\\\"\\n}\\n\")), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"To send a test mail and ensure everything is correct, you can enable the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Sandbox Mode\"), \" setting.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"The sandbox mode can also be enabled or disabled via the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"track\"), \" properties (shown below), which will override the dashboard setting.\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"mailSettings:{\\n    \\\"sandboxMode\\\": true\\n}\\n\")), mdx(\"h4\", {\n    \"id\": \"tracking-settings\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h4\",\n    \"href\": \"#tracking-settings\",\n    \"aria-label\": \"tracking settings permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Tracking settings\"), mdx(\"p\", null, \"The following table describes the various tracking settings to be configured in the RudderStack dashboard:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"th\"\n  }, \"Setting\")), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"th\"\n  }, \"Description\")))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Click Tracking\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Allows you to track if a recipient clicked a link in your email.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Click Tracking enable text\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Indicates if this setting should be included in the text/plain portion of your email.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Open Tracking\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Allows you to track if the email was opened by including a single pixel image in the body of the content.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Substitution Tag\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"When \", mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Open Tracking\"), \" is enabled, this setting allows you to specify a substitution tag that you can insert in the email body at a specific location.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Subscription Tracking\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Allows you to insert a subscription management link at the bottom of your email's text and HTML bodies.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Text\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"When \", mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Subscription Tracking\"), \" is enabled, this setting refers to the string to be appended to the email with the subscription tracking link.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"HTML\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"When \", mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Subscription Tracking\"), \" is enabled, this is appended to the email with the subscription tracking link.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Substitution Tag\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Refers to the tag that will be replaced with the unsubscribe URL.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"GAnalytics\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Allows you to enable Google Analytics tracking.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"utm source\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Refers to the name of the referrer source, e.g. Google.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"utm medium\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Refers to the name of the marketing medium, e.g. Email.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"utm term\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"This setting is used to identify any paid keywords.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"utm content\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Allows you to differentiate your campaign from advertisements.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"utm campaign\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Corresponds to the name of the campaign.\")))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"The \", mdx(\"strong\", null, \"utm source\"), \", \", mdx(\"strong\", null, \"utm medium\"), \", \", mdx(\"strong\", null, \"utm term\"), \", \", mdx(\"strong\", null, \"utm content\"), \", \", mdx(\"strong\", null, \"utm campaign\"), \" options are associated with the \", mdx(\"strong\", null, \"GAnalytics\"), \" setting on the dashboard.\")), mdx(\"p\", null, \"Finally, click on \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Next\"), \" to complete the setup. SendGrid will now be enabled as a destination in RudderStack.\"), mdx(\"h2\", {\n    \"id\": \"track\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#track\",\n    \"aria-label\": \"track permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Track\"), mdx(\"p\", null, \"The \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call lets you send an event to SendGrid along with its properties. \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Note that the properties specified in the \", mdx(\"inlineCode\", {\n    parentName: \"strong\"\n  }, \"track\"), \" call will override the settings specified in the RudderStack dashboard.\")), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, mdx(\"p\", null, \"Note that SendGrid requires either the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"templateId\"), \" or \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"content\"), \" to be present in the body. Otherwise, the event will be \", mdx(\"strong\", null, \"discarded\"), \".\")), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.track('testing',\\n      {\\n          \\\"personalizations\\\": [\\n          {\\n            \\\"to\\\": [\\n              {\\n                \\\"email\\\": \\\"recipient@email.com\\\",\\n                \\\"name\\\": \\\"Name\\\"\\n              }\\n            ],\\n            \\\"cc\\\": [\\n                {\\n                    \\\"email\\\": \\\"ccUser@gmail.com\\\",\\n                    \\\"name\\\": \\\"CCUser\\\"\\n                },\\n                {\\n                    \\\"email\\\": \\\"ccUser2@gmail.com\\\",\\n                    \\\"name\\\": \\\"CCUser2\\\"\\n                }\\n            ],\\n            \\\"subject\\\": \\\"subject\\\"\\n          }\\n        ],\\n        \\\"from\\\": {\\n            \\\"email\\\": \\\"test@email.com\\\",\\n            \\\"name\\\": \\\"Name here\\\"\\n        },\\n        \\\"attachments\\\":[\\n            {\\n                \\\"content\\\": \\\"base64encodedString\\\",\\n                \\\"filename\\\": \\\"index.html\\\",\\n                \\\"type\\\": \\\"text/html\\\",\\n                \\\"disposition\\\": \\\"attachment\\\"\\n            }\\n        ],\\n        \\\"content\\\":[\\n            {\\n                \\\"type\\\": \\\"text/html\\\",\\n                \\\"value\\\": \\\"<p>Hello</p>\\\"\\n            }\\n        ],\\n        \\\"templateId\\\": \\\"value\\\",\\n        \\\"headers\\\":{\\n            \\\"key\\\": \\\"value\\\"\\n        },\\n        \\\"customArgs\\\":{\\n            \\\"key\\\": \\\"value\\\"\\n        },\\n        \\\"categories\\\": [\\\"sample\\\",\\\"values\\\",\\\"here\\\"],\\n        \\\"sendAt\\\": 1617260400,\\n        \\\"batchId\\\": \\\"some valid batch ID\\\",\\n        \\\"subject\\\": \\\"Subject Value\\\",\\n        \\\"mailSettings\\\":{\\n          \\\"bypassBounceManagement\\\": true,\\n          \\\"bypassSpamManagement\\\": true,\\n          \\\"bypassUnsubscribeManagement\\\": true,\\n          \\\"footer\\\": true,\\n          \\\"footerText\\\": \\\"text\\\",\\n          \\\"footerHtml\\\": \\\"html\\\",\\n          \\\"sandboxMode\\\": true\\n        },\\n        \\\"replyTo\\\":{\\n          \\\"email\\\": \\\"testingreplyto@email.com\\\",\\n          \\\"name\\\": \\\"Name\\\"\\n        },\\n        \\\"replyToList\\\":[\\n            {\\n                \\\"email\\\": \\\"test@gmail.com\\\",\\n                \\\"name\\\": \\\"Test\\\"\\n            }\\n        ],\\n        \\\"field1\\\": \\\"value\\\"\\n  });\\n\")), mdx(\"p\", null, \"The following sections highlight some important things to keep in mind while using the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call to send customer data to SendGrid.\"), mdx(\"h3\", {\n    \"id\": \"categories\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#categories\",\n    \"aria-label\": \"categories permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"categories\")), mdx(\"p\", null, \"SendGrid allows the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"categories\"), \" array to have a maximum of 10 values.\"), mdx(\"h3\", {\n    \"id\": \"customargs\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#customargs\",\n    \"aria-label\": \"customargs permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"customArgs\")), mdx(\"p\", null, \"If \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"customArgs\"), \" is not provided in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call, the non-default fields are taken as custom fields. In the sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call above, \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"field1\"), \" will be mapped inside \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"customArgs\"), \".\"), mdx(\"h3\", {\n    \"id\": \"email-settings-1\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#email-settings-1\",\n    \"aria-label\": \"email settings 1 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Email settings\"), mdx(\"p\", null, \"To send the event to SendGrid successfully, the following points must be kept in mind:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"In the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"mailSettings\"), \", you cannot combine \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassListManagement\"), \" with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassBounceManagement\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassSpamManagement\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassUnsubscribeManagement\"), \". \")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"If \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassListManagement\"), \" is present, then neither \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassSpamManagement\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassBounceManagement\"), \", or \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"bypassUnsubscribeManagement\"), \" can be present.\"))), mdx(\"h3\", {\n    \"id\": \"personalizations\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#personalizations\",\n    \"aria-label\": \"personalizations permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"personalizations\")), mdx(\"p\", null, \"SendGrid requires that the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"personalizations\"), \" array should be present in every event and each object must contain the field \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"to\"), \". \"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"If the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Get email ID from traits\"), \" option is enabled in the RudderStack dashboard and the properties are not sent in track call, RudderStack will look for \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"email\"), \" in the event traits. If found, RudderStack will create a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"personalizations\"), \" object and assign \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"email\"), \" to the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"to\"), \" field. \")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"p\", {\n    parentName: \"li\"\n  }, \"In case both \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Template ID\"), \" and \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"content\"), \" are not assigned in the dashboard settings, the event will \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"not\"), \" be sent as either of \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"templateId\"), \" or \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"content\"), \" is required.\"))), mdx(\"h3\", {\n    \"id\": \"replyto\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#replyto\",\n    \"aria-label\": \"replyto permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"replyTo\")), mdx(\"p\", null, \"Note that SendGrid does not allow only \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"name\"), \" to be sent in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"replyTo\"), \"  object. \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"email\"), \" must be present too, otherwise the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"replyTo\"), \" object will be ignored.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"replyTo\"), \" object is as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"replyTo:{\\n    \\\"email\\\": \\\"test@email.com\\\",\\n    \\\"name\\\": \\\"test\\\"\\n}\\n\")), mdx(\"h3\", {\n    \"id\": \"asm-1\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#asm-1\",\n    \"aria-label\": \"asm 1 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"asm\")), mdx(\"p\", null, \"It is mandatory to have the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"groupId\"), \" field inside the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"asm\"), \" object.\"), mdx(\"h3\", {\n    \"id\": \"event-name\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#event-name\",\n    \"aria-label\": \"event name permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Event name\"), mdx(\"p\", null, \"As mentioned in the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"#connection-settings\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"Connection settings\")), \" section above, the event names for which a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call is made must be specified in the RudderStack dashboard. In the sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call above, \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"testing\"), \" is the event name that should be configured in the RudderStack dashboard. Otherwise, this event will be discarded.\"), mdx(\"h3\", {\n    \"id\": \"content-1\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#content-1\",\n    \"aria-label\": \"content 1 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"content\")), mdx(\"p\", null, \"Each object inside \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"content\"), \" array must contain the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"type\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"value\"), \" fields. If these fields are absent, then the object will be dropped. However, note that the event will \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"not\"), \" be discarded.\"), mdx(\"h3\", {\n    \"id\": \"attachments-1\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#attachments-1\",\n    \"aria-label\": \"attachments 1 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"attachments\")), mdx(\"p\", null, \"Each object inside attachments array must at least contain the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"content\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"filename\"), \" fields. If these fields are absent, then the object will be dropped. However the event will \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"not\"), \" be discarded.\"), mdx(\"h2\", {\n    \"id\": \"contact-us\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#contact-us\",\n    \"aria-label\": \"contact us permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Contact us\"), mdx(\"p\", null, \"If you come across any issues while configuring or using SendGrid with RudderStack, you can \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"mailto:%20docs@rudderstack.com\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"contact us\")), \" or start a conversation in our \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://rudderstack.com/join-rudderstack-slack-community\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"Slack\")), \" community.\"));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":1,"value":"SendGrid"},{"depth":2,"value":"Getting started"},{"depth":3,"value":"Connection settings"},{"depth":4,"value":"From"},{"depth":4,"value":"Event names"},{"depth":4,"value":"Content"},{"depth":4,"value":"Attachments"},{"depth":4,"value":"ASM"},{"depth":4,"value":"Email settings"},{"depth":4,"value":"Tracking settings"},{"depth":2,"value":"Track"},{"depth":3,"value":"categories"},{"depth":3,"value":"customArgs"},{"depth":3,"value":"Email settings"},{"depth":3,"value":"personalizations"},{"depth":3,"value":"replyTo"},{"depth":3,"value":"asm"},{"depth":3,"value":"Event name"},{"depth":3,"value":"content"},{"depth":3,"value":"attachments"},{"depth":2,"value":"Contact us"}]}},"pageContext":{"slug":"/docs/destinations/marketing/sendgrid/","next":{"label":"Home","link":"/docs/home"},"repositoryEditUrl":"","repositoryProvider":""}},
    "staticQueryHashes": ["2501019404"]}