{"id":1140,"date":"2021-03-19T11:46:59","date_gmt":"2021-03-19T02:46:59","guid":{"rendered":"https:\/\/ec2-54-238-200-5.ap-northeast-1.compute.amazonaws.com\/blog\/?p=1140"},"modified":"2026-04-13T13:21:15","modified_gmt":"2026-04-13T04:21:15","slug":"ruby%e3%81%8b%e3%82%89sendgrid_ruby-gem%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%e6%b3%95","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=1140","title":{"rendered":"Ruby\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\/03\/20210319_blog.png\" alt=\"Ruby\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-15485\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/20210319_blog.png 650w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/20210319_blog-300x185.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u4eca\u56de\u306fRuby\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>Ruby 2.6.6<\/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-ruby\" rel=\"noopener\" target=\"_blank\">sendgrid-ruby<\/a>\uff09\u306f\u30d0\u30fc\u30b8\u30e7\u30f36.4.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-ruby-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-ruby-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>bundler\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=\"\">\nbundle 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=\"\">\nruby sendgrid-ruby-example.rb\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: bash; 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>API_KEY\uff1aSendGrid\u306e<a href=\"https:\/\/sendgrid.kke.co.jp\/docs\/Tutorials\/A_Transaction_Mail\/manage_api_key.html\" rel=\"noopener\" 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>\u30e1\u30fc\u30eb\u9001\u4fe1\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: ruby; title: ; notranslate\" title=\"\">\nrequire &#039;sendgrid-ruby&#039;\nrequire &#039;dotenv&#039;\ninclude SendGrid\n\n# .env\u304b\u3089\u74b0\u5883\u5909\u6570\u3092\u8aad\u307f\u8fbc\u3080\nDotenv.load\nsendgrid_api_key = ENV&#x5B;&#039;API_KEY&#039;]\nfrom = ENV&#x5B;&#039;FROM&#039;]\ntos = ENV&#x5B;&#039;TOS&#039;].split(&#039;,&#039;)\n\n# \u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u5143\u3092\u8a2d\u5b9a\u3059\u308b\nmail = SendGrid::Mail.new\nmail.from = Email.new(email: from, name: &#039;\u9001\u4fe1\u8005\u540d&#039;)\n\n# \u30e1\u30fc\u30eb\u306e\u4ef6\u540d\u3068\u672c\u6587\u3092\u4f5c\u6210\u3059\u308b\nmail.subject = &#039;&#x5B;sendgrid-ruby-example] \u30d5\u30af\u30ed\u30a6\u306e\u540d\u524d\u306f%fullname%\u3055\u3093&#039;\nmail.add_content(Content.new(type: &#039;text\/plain&#039;, value: &#039;some text here&#039;))\nmail.add_content(Content.new(type: &#039;text\/html&#039;, value: &#039;&lt;html&gt;&lt;body&gt; %familyname%\u3055\u3093\u306f\u4f55\u3092\u3057\u3066\u3044\u307e\u3059\u304b\uff1f&lt;br&gt;\u5f7c\u306f%place%\u306b\u3044\u307e\u3059\u3002&lt;\/body&gt;&lt;\/html&gt;&#039;))\n\n# 1\u3064\u76ee\u306e\u5b9b\u5148\u3068\u3001\u5bfe\u5fdc\u3059\u308bSubstitution\u30bf\u30b0\u3092\u6307\u5b9a\u3059\u308b\npersonalization1 = Personalization.new\npersonalization1.add_to(Email.new(email: tos&#x5B;0]))\npersonalization1.add_substitution(Substitution.new(key: &#039;%fullname%&#039;, value: &#039;\u7530\u4e2d \u592a\u90ce&#039;))\npersonalization1.add_substitution(Substitution.new(key: &#039;%familyname%&#039;, value: &#039;\u7530\u4e2d&#039;))\npersonalization1.add_substitution(Substitution.new(key: &#039;%place%&#039;, value: &#039;\u4e2d\u91ce&#039;))\nmail.add_personalization(personalization1)\n\n# 2\u3064\u76ee\u306e\u5b9b\u5148\u3068\u3001\u5bfe\u5fdc\u3059\u308bSubstitution\u30bf\u30b0\u3092\u6307\u5b9a\u3059\u308b\npersonalization2 = Personalization.new\npersonalization2.add_to(Email.new(email: tos&#x5B;1]))\npersonalization2.add_substitution(Substitution.new(key: &#039;%fullname%&#039;, value: &#039;\u4f50\u85e4 \u6b21\u90ce&#039;))\npersonalization2.add_substitution(Substitution.new(key: &#039;%familyname%&#039;, value: &#039;\u4f50\u85e4&#039;))\npersonalization2.add_substitution(Substitution.new(key: &#039;%place%&#039;, value: &#039;\u76ee\u9ed2&#039;))\nmail.add_personalization(personalization2)\n\n# 3\u3064\u76ee\u306e\u5b9b\u5148\u3068\u3001\u5bfe\u5fdc\u3059\u308bSubstitution\u30bf\u30b0\u3092\u6307\u5b9a\u3059\u308b\npersonalization3 = Personalization.new\npersonalization3.add_to(Email.new(email: tos&#x5B;2]))\npersonalization3.add_substitution(Substitution.new(key: &#039;%fullname%&#039;, value: &#039;\u9234\u6728 \u4e09\u90ce&#039;))\npersonalization3.add_substitution(Substitution.new(key: &#039;%familyname%&#039;, value: &#039;\u9234\u6728&#039;))\npersonalization3.add_substitution(Substitution.new(key: &#039;%place%&#039;, value: &#039;\u4e2d\u91ce&#039;))\nmail.add_personalization(personalization3)\n\n# \u30ab\u30c6\u30b4\u30ea\u60c5\u5831\u3092\u4ed8\u52a0\u3059\u308b\nmail.add_category(Category.new(name: &#039;Category1&#039;))\n\n# \u30ab\u30b9\u30bf\u30e0\u30d8\u30c3\u30c0\u3092\u5229\u7528\u3059\u308b\nmail.add_header(Header.new(key: &#039;X-Sent-Using&#039;, value: &#039;SendGrid-API&#039;))\n\n# \u6307\u5b9a\u3057\u305f\u753b\u50cf\u3092\u6dfb\u4ed8\u3059\u308b\nattachment = Attachment.new\nattachment.content = Base64.strict_encode64(File.read(&quot;gif.gif&quot;))\nattachment.filename = &#039;owl.gif&#039;\nmail.add_attachment(attachment)\n\n# \u8a8d\u8a3c\u60c5\u5831\u3092\u6307\u5b9a\u3059\u308b\nsg = SendGrid::API.new(api_key: sendgrid_api_key)\n\n# \u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u884c\u3044\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8868\u793a\u3055\u305b\u308b\nresponse = sg.client.mail._(&#039;send&#039;).post(request_body: mail.to_json)\nputs response.status_code\nputs response.body\nputs response.headers\n<\/pre>\n<h3>\u89e3\u8aac<\/h3>\n<h4>5\uff5e9\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>11\u301c13\u884c\u76ee<\/h4>\n<p>\u9001\u4fe1\u5143\u30a2\u30c9\u30ec\u30b9\u3001\u9001\u4fe1\u8005\u540d\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>15\u301c18\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\u300c%fullname%\u300d\u300c%familyname%\u300d\u300c%place%\u300d\u306fSubstitution\u30bf\u30b0\u3068\u3044\u3046\u3001\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\u3002Substitution\u30bf\u30b0\u306b\u5bfe\u5fdc\u3059\u308b\u914d\u5217\u306f\u3001\u6b21\u306e21\u301c43\u884c\u76ee\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>20\uff5e42\u884c\u76ee<\/h4>\n<p>\u5b9b\u5148\u30ea\u30b9\u30c8\u3068\u3001Substitution\u30bf\u30b0\u306b\u5bfe\u5fdc\u3059\u308b\u914d\u5217\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\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>44\uff5e54\u884c\u76ee<\/h4>\n<p>\u30ab\u30c6\u30b4\u30ea\u3001\u4efb\u610f\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>56\uff5e63\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\u3067\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\/03\/No.5_tanaka.png\" alt=\"\u5b9b\u51481\u3067\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\" width=\"100%\" class=\"aligncenter size-full wp-image-19007\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_tanaka.png 2103w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_tanaka-300x163.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_tanaka-768x418.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_tanaka-1024x558.png 1024w\" sizes=\"(max-width: 2103px) 100vw, 2103px\" \/><\/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\/03\/No.5_sato.png\" alt=\"\u5b9b\u51482\u3067\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\" width=\"100%\" class=\"aligncenter size-full wp-image-19008\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_sato.png 2080w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_sato-300x151.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_sato-768x387.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/03\/No.5_sato-1024x516.png 1024w\" sizes=\"(max-width: 2080px) 100vw, 2080px\" \/><\/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\" rel=\"noopener\" 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-ruby\/tree\/main\/examples\" rel=\"noopener\" 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\u306fRuby\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 <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=1140\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":15485,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11,8],"tags":[],"class_list":["post-1140","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\/1140","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=1140"}],"version-history":[{"count":23,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1140\/revisions"}],"predecessor-version":[{"id":20621,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1140\/revisions\/20621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/15485"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}