{"id":1070,"date":"2021-04-16T11:35:34","date_gmt":"2021-04-16T02:35:34","guid":{"rendered":"https:\/\/ec2-54-238-200-5.ap-northeast-1.compute.amazonaws.com\/blog\/?p=1070"},"modified":"2026-04-02T18:04:41","modified_gmt":"2026-04-02T09:04:41","slug":"python%e3%81%8b%e3%82%89sendgrid%e5%85%ac%e5%bc%8f%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%92%e9%80%81%e3%82%8b%e6%96%b9","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=1070","title":{"rendered":"Python\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\uff01Twilio SendGrid\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/20210416_blog.png\" alt=\"Python\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\uff01Twilio SendGrid\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\" width=\"100%\" class=\"aligncenter size-full wp-image-15495\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/20210416_blog.png 650w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/20210416_blog-300x185.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u4eca\u56de\u306fPython\u304b\u3089Twilio SendGrid\u306e\u516c\u5f0f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ea4\u3048\u306a\u304c\u3089\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30e1\u30fc\u30eb\u6587\u9762\uff08\u4ef6\u540d\u3001\u672c\u6587\uff09\u3078\u306e\u6587\u5b57\u5217\u57cb\u3081\u8fbc\u307f\u3001\u65e5\u672c\u8a9e\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u8a66\u3059\u524d\u306b\u4ee5\u4e0b\u306e\u74b0\u5883\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>Python 3.7<\/li>\n<li>pipenv<\/li>\n<li>git<\/li>\n<li><a href=\"https:\/\/sendgrid.kke.co.jp\/\" rel=\"noopener\" target=\"_blank\">SendGrid<\/a>\u30a2\u30ab\u30a6\u30f3\u30c8\uff08\u9001\u4fe1\u5143\u30c9\u30e1\u30a4\u30f3\u3067<a href=\"https:\/\/sendgrid.kke.co.jp\/docs\/Tutorials\/D_Improve_Deliverability\/using_whitelabel.html#-Domain-Whitelabel\" rel=\"noopener\" target=\"_blank\">Domain Authentication<\/a>\u3092\u8a2d\u5b9a\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\uff09<\/li>\n<\/ul>\n<p>\u672c\u8a18\u4e8b\u306e\u5185\u5bb9\u306fmacOS\u4e0a\u306b\u74b0\u5883\u69cb\u7bc9\u3057\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u4ed6\u306eOS\u3067\u3082\u57fa\u672c\u7684\u306b\u624b\u9806\u306f\u540c\u3058\u3067\u3059\u3002Windows\u306e\u5834\u5408\u3001cp\u306fcopy\u30b3\u30de\u30f3\u30c9\u306b\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u306a\u304a\u3001SendGrid\u516c\u5f0f\u30e9\u30a4\u30d6\u30e9\u30ea\uff08<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-python\" target=\"_blank\">sendgrid-python<\/a>\uff09\u306f\u30d0\u30fc\u30b8\u30e7\u30f36.6.0\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u6e96\u5099<\/h3>\n<p>\u30b3\u30fc\u30c9\u30b5\u30f3\u30d7\u30eb\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30af\u30ed\u30fc\u30f3\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ngit clone git@github.com:SendGridJP\/sendgridjp-python-example.git\n<\/pre>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306b\u79fb\u52d5\u3057\u3066.env.example\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncd sendgridjp-python-example\ncp .env.example .env\n<\/pre>\n<p>.env\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\uff08\u5f8c\u8ff0\uff09\u3057\u307e\u3059\u3002<\/p>\n<p>pipenv\u306b\u3088\u308b\u4f9d\u5b58\u95a2\u4fc2\u306e\u89e3\u6c7a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\npipenv install\n<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\npipenv shell\npython sendgrid-python-example.py\n<\/pre>\n<h3>.env\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6<\/h3>\n<p>.env\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nAPI_KEY=api_key\nTOS=you@youremail.com,friend1@friendemail.com,friend2@friendemail.com\nFROM=you@youremail.com\n<\/pre>\n<p><a href=\"https:\/\/github.com\/SendGridJP\/sendgridjp-python-example\/blob\/master\/.env.example\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/SendGridJP\/sendgridjp-python-example\/blob\/master\/.env.example<\/a><\/p>\n<p>API_KEY\uff1aSendGrid\u306e<a href=\"https:\/\/sendgrid.kke.co.jp\/docs\/Tutorials\/A_Transaction_Mail\/manage_api_key.html\" target=\"_blank\">API Key<\/a>\uff08Mail Send\u3078\u306eFULL ACCESS\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\uff09\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nTOS\uff1a\u5b9b\u5148\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u95a2\u4fc2\u4e0a\u3001\u5b9b\u5148\u306f3\u3064\u4ee5\u4e0a\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nFROM\uff1a\u9001\u4fe1\u5143\u30a2\u30c9\u30ec\u30b9\uff08Domain Authentication\u3092\u8a2d\u5b9a\u3057\u305f\u30c9\u30e1\u30a4\u30f3\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff09\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n<p>\u4eca\u56de\u4f7f\u7528\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; gutter: true; title: ; notranslate\" title=\"\">\nfrom sendgrid import SendGridAPIClient\nfrom sendgrid.helpers.mail import *\nimport os\nimport base64\nfrom dotenv import load_dotenv\nload_dotenv()\n\n# .env\u304b\u3089\u74b0\u5883\u5909\u6570\u3092\u8aad\u307f\u8fbc\u3080\nsendgrid_api_key = os.environ.get(&amp;amp;#039;API_KEY&amp;amp;#039;)\nfrom_address = os.environ.get(&amp;amp;#039;FROM&amp;amp;#039;)\nto_list = os.environ.get(&amp;amp;#039;TOS&amp;amp;#039;).split(&amp;amp;#039;,&amp;amp;#039;)\n\n# \u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u69cb\u7bc9\nmessage = Mail()\n\n# \u5404\u5b9b\u5148\u3068\u3001\u5bfe\u5fdc\u3059\u308bSubstitution\u30bf\u30b0\u3092\u6307\u5b9a\nfullname_list = &#x5B;&amp;amp;#039;\u7530\u4e2d \u592a\u90ce&amp;amp;#039;, &amp;amp;#039;\u4f50\u85e4 \u6b21\u90ce&amp;amp;#039;, &amp;amp;#039;\u9234\u6728 \u4e09\u90ce&amp;amp;#039;]\nfamilyname_list = &#x5B;&amp;amp;#039;\u7530\u4e2d&amp;amp;#039;, &amp;amp;#039;\u4f50\u85e4&amp;amp;#039;, &amp;amp;#039;\u9234\u6728&amp;amp;#039;]\nplace_list = &#x5B;&amp;amp;#039;\u4e2d\u91ce&amp;amp;#039;, &amp;amp;#039;\u76ee\u9ed2&amp;amp;#039;, &amp;amp;#039;\u4e2d\u91ce&amp;amp;#039;]\n    \nfor num in range(len(to_list)):\n    message.to = To(to_list&#x5B;num], fullname_list&#x5B;num], p = num)\n\n    message.substitution = &#x5B;\n        Substitution(&amp;amp;#039;fullname&amp;amp;#039;, fullname_list&#x5B;num], p = num),\n        Substitution(&amp;amp;#039;familyname&amp;amp;#039;, familyname_list&#x5B;num], p = num),\n        Substitution(&amp;amp;#039;place&amp;amp;#039;, place_list&#x5B;num], p = num),\n        ]\n\n# \u9001\u4fe1\u5143\u3092\u8a2d\u5b9a\nmessage.from_email = From(from_address, &amp;amp;#039;\u9001\u4fe1\u8005\u540d&amp;amp;#039;)\n\n# \u4ef6\u540d\u3092\u8a2d\u5b9a\nmessage.subject = Subject(&amp;amp;#039;&#x5B;sendgrid-python-example] \u30d5\u30af\u30ed\u30a6\u306e\u304a\u540d\u524d\u306ffullname\u3055\u3093&amp;amp;#039;)\n\n# \u672c\u6587\uff08\u30c6\u30ad\u30b9\u30c8\u30d1\u30fc\u30c8\u3068HTML\u30d1\u30fc\u30c8\uff09\u3092\u6307\u5b9a\nmessage.content = Content(MimeType.text, &amp;amp;#039;familyname \u3055\u3093\u306f\u4f55\u3092\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\\r\\n \u5f7c\u306fplace\u306b\u3044\u307e\u3059\u3002&amp;amp;#039;)\nmessage.content = Content(MimeType.html, &amp;amp;#039;&amp;amp;amp;lt;strong&amp;amp;amp;gt;familyname \u3055\u3093\u306f\u4f55\u3092\u3057\u3066\u3044\u307e\u3059\u304b\uff1f&amp;amp;amp;lt;\/strong&amp;amp;amp;gt;&amp;amp;amp;lt;br \/&amp;amp;amp;gt;\u5f7c\u306fplace\u306b\u3044\u307e\u3059\u3002&amp;amp;#039;)\n    \n# \u30ab\u30c6\u30b4\u30ea\u60c5\u5831\u3092\u4ed8\u52a0\nmessage.category = Category(&amp;amp;#039;Category1&amp;amp;#039;)\n    \n# \u30ab\u30b9\u30bf\u30e0\u30d8\u30c3\u30c0\u3092\u6307\u5b9a\nmessage.header = Header(&amp;amp;#039;X-Sent-Using&amp;amp;#039;, &amp;amp;#039;SendGrid-API&amp;amp;#039;)\n    \n# \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\nwith open(&amp;amp;#039;gif.gif&amp;amp;#039;, &amp;amp;#039;rb&amp;amp;#039;) as f:\n    data = f.read()\n    f.close()\nencoded_file = base64.b64encode(data).decode()\n    \nmessage.attachment = Attachment(FileContent(encoded_file),\n                                FileName(&amp;amp;#039;owl.gif&amp;amp;#039;),\n                                FileType(&amp;amp;#039;image\/gif&amp;amp;#039;),\n                                Disposition(&amp;amp;#039;attachment&amp;amp;#039;))\n\n# \u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u884c\u3044\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8868\u793a\nsendgrid_client = SendGridAPIClient(sendgrid_api_key)\nresponse = sendgrid_client.send(message = message)\nprint(response.status_code)\nprint(response.body)\nprint(response.headers)\n<\/pre>\n<p><a href=\"https:\/\/github.com\/SendGridJP\/sendgridjp-python-example\/blob\/master\/sendgrid-python-example.py\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/SendGridJP\/sendgridjp-python-example\/blob\/master\/sendgrid-python-example.py<\/a><\/p>\n<h3>\u89e3\u8aac<\/h3>\n<h4>8\uff5e11\u884c\u76ee<\/h4>\n<p>\u74b0\u5883\u5909\u6570\u304b\u3089SendGrid\u306e\u8a8d\u8a3c\u60c5\u5831\u3001\u9001\u4fe1\u5143\u30a2\u30c9\u30ec\u30b9\u3001\u5b9b\u5148\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<h4>16\uff5e28\u884c\u76ee<\/h4>\n<p>\u5b9b\u5148\u30ea\u30b9\u30c8\u3068\u3001\u5bfe\u5fdc\u3059\u308bSubstituion\u30bf\u30b0\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002Substitution\u30bf\u30b0\u306f\u5b9b\u5148\u3054\u3068\u306b\u4ef6\u540d\u3001\u672c\u6587\u306b\u6587\u5b57\u5217\u3092\u57cb\u3081\u8fbc\u3080\u305f\u3081\u306e\u6a5f\u80fd\u3067\u3059\u3002\u5f15\u6570p\u306b\u3088\u308a\u3001\u5404\u5b9b\u5148\u3068Substitution\u30bf\u30b0\u304c\u7d10\u4ed8\u3051\u3089\u308c\u307e\u3059\u3002<br \/>\n\u5b9b\u5148\u3092\u8907\u6570\u6307\u5b9a\u3057\u3066\u3082\u914d\u4fe1\u3055\u308c\u305f\u30e1\u30fc\u30eb\u306e\u5b9b\u5148\u306b\u306f\u4ed6\u306e\u5b9b\u5148\u304c\u898b\u3048\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u53d7\u4fe1\u8005\u306e\u30a2\u30c9\u30ec\u30b9\u306e\u307f\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u8907\u6570\u306e\u5b9b\u5148\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3067\u3082\u9001\u4fe1\u30ea\u30af\u30a8\u30b9\u30c8\u306f1\u56de\u3068\u306a\u308b\u305f\u3081\u3001\u5927\u91cf\u306e\u5b9b\u5148\u306b\u5bfe\u3057\u3066\u9ad8\u901f\u306b\u9001\u4fe1\u51e6\u7406\u8981\u6c42\u3092\u9001\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u5b9b\u5148\u30ea\u30b9\u30c8\u306f\u6700\u5927\u30671,000\u30a2\u30c9\u30ec\u30b9\u307e\u3067\u6307\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4>33\uff5e38\u884c\u76ee<\/h4>\n<p>\u30e1\u30fc\u30eb\u306e\u4ef6\u540d\u3068\u672c\u6587\uff08text\/plain\u304a\u3088\u3073text\/html\uff09\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u300cfullname\u300d\u300cfamilyname\u300d\u300cplace\u300d\u3068\u3044\u3046Substitution\u30bf\u30b0\u3092\u57cb\u3081\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<h4>40\uff5e55\u884c\u76ee<\/h4>\n<p>\u30ab\u30c6\u30b4\u30ea\u3001\u30ab\u30b9\u30bf\u30e0\u30d8\u30c3\u30c0\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u3092\u6307\u5b9a\u3057\u3066\u304a\u304f\u3068\u3001\u30ab\u30c6\u30b4\u30ea\u3054\u3068\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u306b\u95a2\u308f\u308b\u7d71\u8a08\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>57\uff5e62\u884c\u76ee<\/h4>\n<p>\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u5404\u5b9b\u5148\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u914d\u4fe1\u3055\u308c\u307e\u3059\u3002<br \/>\n\u5b9b\u5148\u306b\u306f\u3001\u81ea\u5206\u306e\u307f\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\nSubstitution\u30bf\u30b0\u304c\u305d\u308c\u305e\u308c\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u306b\u7f6e\u63db\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u5b9b\u51481\u3067\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_tanaka.png\" alt=\"\u5b9b\u51481\u3067\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\" width=\"100%\" class=\"aligncenter size-full wp-image-19010\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_tanaka.png 2145w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_tanaka-300x160.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_tanaka-768x410.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_tanaka-1024x547.png 1024w\" sizes=\"(max-width: 2145px) 100vw, 2145px\" \/><\/p>\n<h4>\u5b9b\u51482\u3067\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_sato.png\" alt=\"\u5b9b\u51482\u3067\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\" width=\"100%\" class=\"aligncenter size-full wp-image-19011\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_sato.png 2090w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_sato-300x151.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_sato-768x385.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/04\/No.6_sato-1024x514.png 1024w\" sizes=\"(max-width: 2090px) 100vw, 2090px\" \/><\/p>\n<h3>\u3055\u3044\u3054\u306b<\/h3>\n<p>SendGrid\u516c\u5f0f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u8907\u96d1\u306aSMTP\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u89e6\u308c\u308b\u3053\u3068\u306a\u304f\u7c21\u5358\u306b\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6587\u5b57\u306e\u57cb\u3081\u8fbc\u307f\u3084\u30ab\u30c6\u30b4\u30ea\u6307\u5b9a\u306a\u3069\u3082\u7c21\u5358\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30d0\u30a6\u30f3\u30b9\u6642\u306e\u51e6\u7406\u3084\u914d\u4fe1\u505c\u6b62\u306e\u7ba1\u7406\u3001\u9001\u4fe1\u30c9\u30e1\u30a4\u30f3\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u306a\u3069\u3082SendGrid\u306b\u4efb\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u958b\u767a\u5de5\u6570\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Twilio SendGrid\u3067\u306f\u300160\u65e5\u9593\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u3067\u307b\u307c\u5168\u3066\u306e\u6a5f\u80fd\u3092\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<br \/>\n<a class=\"fitWidthLink\" href=\"https:\/\/sendgrid.kke.co.jp\/app?p=signup.index&#038;utm_source=sg&#038;utm_medium=web&#038;utm_campaign=blog\" target=\"_blank\" style=\"width:50%;\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2022\/09\/blog_cta2.png\" alt=\"\u7121\u6599\u3067\u8a66\u3059\" class=\"aligncenter size-full noshadow\" \/><\/a><\/p>\n<p>\u305d\u306e\u4ed6\u306e\u8a00\u8a9e\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=10832\" target=\"_blank\">\u30e1\u30fc\u30eb\u9001\u4fe1\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3010\u307e\u3068\u3081\u3011 <\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u53c2\u8003\u8a18\u4e8b<\/h3>\n<p>\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u542b\u307e\u308c\u308b<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-python\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/a>\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u4eca\u56de\u306fPython\u304b\u3089Twilio SendGrid\u306e\u516c\u5f0f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ea4\u3048\u306a\u304c\u3089\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30e1\u30fc\u30eb\u6587\u9762\uff08\u4ef6\u540d\u3001\u672c\u6587\uff09\u3078\u306e\u6587\u5b57\u5217\u57cb\u3081\u8fbc\u307f\u3001\u65e5\u672c\u8a9e\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u5229 <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=1070\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":15495,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11,8],"tags":[],"class_list":["post-1070","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical","category-product"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1070"}],"version-history":[{"count":16,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1070\/revisions"}],"predecessor-version":[{"id":20538,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1070\/revisions\/20538"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/15495"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}