{"id":13060,"date":"2020-09-24T11:36:53","date_gmt":"2020-09-24T02:36:53","guid":{"rendered":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=13060"},"modified":"2025-09-30T09:57:15","modified_gmt":"2025-09-30T00:57:15","slug":"twilio-sendgrid%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6laravel%e3%81%a7web%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1%e6%a9%9f%e8%83%bd%e3%82%92%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=13060","title":{"rendered":"Twilio SendGrid\u3092\u4f7f\u3063\u3066Laravel\u3067Web\u30d9\u30fc\u30b9\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/20200924_blog.png\" alt=\"Twilio SendGrid\u3092\u4f7f\u3063\u3066Laravel\u3067Web\u30d9\u30fc\u30b9\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\" width=\"100%\" class=\"aligncenter size-full wp-image-19534\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/20200924_blog.png 650w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/20200924_blog-300x185.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/20200924_blog-225x139.png 225w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<blockquote>\n<p>\u3053\u306e\u8a18\u4e8b\u306f <a href=\"https:\/\/www.twilio.com\/blog\/how-to-build-a-web-based-email-client-in-laravel-php-using-twilio-sendgrid\" target=\"_blank\">How to Build a Web-Based Email Client in Laravel PHP using Twilio SendGrid<\/a> \u306e\u6284\u8a33\u3067\u3059\u3002<\/p>\n<\/blockquote>\n<p>\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u4e00\u822c\u306b\u516c\u958b\u3059\u308b\u969b\u306f\u3001\u975e\u5e38\u306b\u795e\u7d4c\u3092\u4f7f\u3046\u3082\u306e\u3067\u3059\u3002\u7279\u306b\u3001\u958b\u767a\u3084\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u306e\u521d\u671f\u6bb5\u968e\u3067\u306f\u3001\u30e6\u30fc\u30b6\u3068\u7d99\u7d9a\u7684\u306b\u9023\u7d61\u3092\u53d6\u308a\u5408\u3046\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u624b\u6bb5\u3068\u3057\u3066\u30e1\u30fc\u30eb\u306f\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u30e1\u30fc\u30eb\u306f\u3001\u65b0\u6a5f\u80fd\u3084\u4e0d\u5177\u5408\u306e\u4fee\u6b63\u3092\u30e6\u30fc\u30b6\u3078\u77e5\u3089\u305b\u305f\u308a\u3001\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30e6\u30fc\u30b6\u3092\u30d5\u30a9\u30ed\u30fc\u30a2\u30c3\u30d7\u3057\u305f\u308a\u3059\u308b\u306e\u306b\u6700\u9069\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u65e2\u5b58\u306eLaravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bWeb\u30d9\u30fc\u30b9\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u7d42\u4e86\u3059\u308b\u3068\u3001Laravel\u3068<a href=\"https:\/\/sendgrid.kke.co.jp\/\" rel=\"noopener\" target=\"_blank\">Twilio SendGrid<\/a>\u3092\u5229\u7528\u3057\u305f\u30e1\u30fc\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u5fc5\u8981\u306a\u3082\u306e<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u5fc5\u8981\u306a\u3082\u306e\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<table border>\n<tr>\n<td>\n\u30fb\u57fa\u672c\u7684\u306aLaravel\u306e\u77e5\u8b58<br \/>\n\u30fb<a href=\"https:\/\/laravel.com\/docs\/master\" rel=\"noopener\" target=\"_blank\">Laravel<\/a>\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u30fb<a href=\"https:\/\/getcomposer.org\/\" rel=\"noopener\" target=\"_blank\">Composer<\/a>\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u30fb<a href=\"https:\/\/www.mysql.com\/downloads\/\" rel=\"noopener\" target=\"_blank\">MySQL<\/a>\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<br \/>\n\u30fb<a href=\"https:\/\/sendgrid.kke.co.jp\/app?p=signup.index\" rel=\"noopener\" target=\"_blank\">SendGrid<\/a>\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\n<\/td>\n<\/tr>\n<\/table>\n<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u306f\u3058\u3081\u306b\u3001\u4eca\u56de\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306e\u65b0\u3057\u3044Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001<a href=\"https:\/\/laravel.com\/docs\/6.x#installing-laravel\" rel=\"noopener\" target=\"_blank\">Laravel Installer<\/a>\u3068Composer\u306e\u3069\u3061\u3089\u3092\u5229\u7528\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001\u672c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u524d\u8005\u3092\u4f7f\u3044\u307e\u3059\u3002\u3082\u3057Laravel Installer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u3001<a href=\"https:\/\/laravel.com\/docs\/6.x#installing-laravel\" rel=\"noopener\" target=\"_blank\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u624b\u9806\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ laravel new custom-mail-system\r\n<\/pre>\n<p>\u3053\u3053\u3067\u3001SendGrid\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u306f<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-php\" rel=\"noopener\" target=\"_blank\">SendGrid PHP\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001Composer\u7d4c\u7531\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ composer require &quot;sendgrid\/sendgrid&quot;\r\n<\/pre>\n<p>SendGrid\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u306f\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u305f\u3081\u306bAPI\u30ad\u30fc\u3092\u5229\u7528\u3057\u307e\u3059\u3002API\u30ad\u30fc\u306f<a href=\"https:\/\/app.sendgrid.com\/settings\/api_keys\" rel=\"noopener\" target=\"_blank\">\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9<\/a>\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/F4so458xm8IFe1n3Ofoe7CWQDgbJnYKRuT7qs1xuUnselt.width-800.png\" alt=\"API Keys\" width=\"100%\" class=\"aligncenter size-full wp-image-13062\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/F4so458xm8IFe1n3Ofoe7CWQDgbJnYKRuT7qs1xuUnselt.width-800.png 800w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/F4so458xm8IFe1n3Ofoe7CWQDgbJnYKRuT7qs1xuUnselt.width-800-300x168.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/F4so458xm8IFe1n3Ofoe7CWQDgbJnYKRuT7qs1xuUnselt.width-800-768x431.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u307e\u3060API\u30ad\u30fc\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u65b0\u3057\u304f\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002\u4f5c\u6210\u306b\u6210\u529f\u3057\u305f\u3089\u3001\u8868\u793a\u3055\u308c\u308b\u6587\u5b57\u5217\u3092\u5b89\u5168\u306a\u5834\u6240\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002API\u30ad\u30fc\u306f\u4e00\u5ea6\u3057\u304b\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/OgT_eYZkAPfUsTLEfvsEmSsNmLNpD0dgJQX8GbzJqrCjV5.width-800.png\" alt=\"API Key Created\" width=\"100%\" class=\"aligncenter size-full wp-image-13063\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/OgT_eYZkAPfUsTLEfvsEmSsNmLNpD0dgJQX8GbzJqrCjV5.width-800.png 800w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/OgT_eYZkAPfUsTLEfvsEmSsNmLNpD0dgJQX8GbzJqrCjV5.width-800-300x168.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/OgT_eYZkAPfUsTLEfvsEmSsNmLNpD0dgJQX8GbzJqrCjV5.width-800-768x431.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u6b21\u306b\u3001.env\u30d5\u30a1\u30a4\u30eb\u306e\u74b0\u5883\u5909\u6570\u306bAPI\u30ad\u30fc\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nSENDGRID_API_KEY={YOUR API KEY}\r\n<\/pre>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306fMySQL\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u307e\u3060\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u3067<a href=\"https:\/\/www.mysql.com\/\" rel=\"noopener\" target=\"_blank\">Mysql<\/a>\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/www.mysql.com\/downloads\/\" rel=\"noopener\" target=\"_blank\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001MySQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u30ed\u30b0\u30a4\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ mysql -u {your_user_name}\r\n<\/pre>\n<p>\u88dc\u8db3\uff1aMySQL\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30b3\u30de\u30f3\u30c9\u306b -p \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nmysql&gt; create database custom-mailing;\r\n<\/pre>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nmysql&gt; exit;\r\n<\/pre>\n<h3>users\u30c6\u30fc\u30d6\u30eb\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>Laravel\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u57fa\u672c\u7684\u306a\u30b9\u30ad\u30fc\u30de\u3092\u542b\u3080users\u30c6\u30fc\u30d6\u30eb\u306e<a href=\"https:\/\/laravel.com\/docs\/6.x\/migrations\" rel=\"noopener\" target=\"_blank\">\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/a>\u304c\u6700\u521d\u304b\u3089\u6e96\u5099\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/**    * Run the migrations.\r\n    *\r\n    * @return void\r\n    *\/\r\n   public function up()\r\n   {\r\n       Schema::create('users', function (Blueprint $table) {\r\n           $table-&gt;bigIncrements('id');\r\n           $table-&gt;string('name');\r\n           $table-&gt;string('email')-&gt;unique();\r\n           $table-&gt;timestamp('email_verified_at')-&gt;nullable();\r\n           $table-&gt;string('password');\r\n           $table-&gt;rememberToken();\r\n           $table-&gt;timestamps();\r\n       });\r\n   } \r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u898b\u308b\u3068\u3001\u672c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\uff08<span style=\"background-color:#d3d3d3\">email<\/span>\u3068<span style=\"background-color:#d3d3d3\">name<\/span>\uff09\u304c\u6700\u521d\u304b\u3089\u5b58\u5728\u3059\u308b\u306e\u3067\u3001\u30b9\u30ad\u30fc\u30de\u3092\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u307e\u3060\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30b3\u30df\u30c3\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ php artisan migrate\r\n<\/pre>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u306e<a href=\"https:\/\/laravel.com\/docs\/6.x\/migrations#migration-structure\" rel=\"noopener\" target=\"_blank\">up()<\/a>\u30e1\u30bd\u30c3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u5217\u6319\u3057\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u3064<span style=\"background-color:#d3d3d3\">users<\/span>\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Users\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u521d\u671f\u30c7\u30fc\u30bf\u306e\u6295\u5165<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3067\u304d\u305f\u3089\u3001\u3044\u304f\u3064\u304b\u30e6\u30fc\u30b6\u60c5\u5831\u3092\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306e\u6295\u5165\u306b\u306f<a href=\"https:\/\/laravel.com\/docs\/6.x\/seeding\" rel=\"noopener\" target=\"_blank\">seeders<\/a>\u3092\u4f7f\u3046\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002seeder\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ php artisan make:seeder UsersTableSeeder\r\n<\/pre>\n<p>\u3059\u308b\u3068\u3001<span style=\"background-color:#d3d3d3\">database\/seeds\/<\/span>\u306b<span style=\"background-color:#d3d3d3\">UsersTableSeeder<\/span>\u3068\u3044\u3046seeder\u30af\u30e9\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb( <span style=\"background-color:#d3d3d3\">database\/seeds\/UsersTableSeeder.php<\/span> )\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nuse Illuminate\\Database\\Seeder;\r\nuse Illuminate\\Support\\Facades\\DB;\r\nuse Faker\\Generator as Faker;\r\nuse Illuminate\\Support\\Facades\\Hash;\r\nclass UsersTableSeeder extends Seeder\r\n{\r\n   \/**\r\n    * Run the database seeds.\r\n    *\r\n    * @return void\r\n    *\/\r\n   public function run(Faker $faker)\r\n   {\r\n       DB::table(&quot;users&quot;)-&gt;insert(&#x5B;\r\n           &#x5B;\r\n               'name' =&gt; $faker-&gt;name,\r\n               'email' =&gt; $faker-&gt;unique()-&gt;safeEmail, \/\/use real email here\r\n               'email_verified_at' =&gt; now(),\r\n               'password' =&gt; Hash::make($faker-&gt;password()), \/\/ assword\r\n           ],\r\n           &#x5B;\r\n               'name' =&gt; $faker-&gt;name,\r\n               'email' =&gt; $faker-&gt;unique()-&gt;safeEmail, \/\/use real email here\r\n               'email_verified_at' =&gt; now(),\r\n               'password' =&gt; Hash::make($faker-&gt;password()), \/\/ password\r\n           ],\r\n           &#x5B;\r\n               'name' =&gt; $faker-&gt;name,\r\n               'email' =&gt; $faker-&gt;unique()-&gt;safeEmail, \/\/use real email here\r\n               'email_verified_at' =&gt; now(),\r\n               'password' =&gt; Hash::make($faker-&gt;password()), \/\/ password\r\n           ],\r\n       ]);\r\n   }\r\n}\r\n<\/pre>\n<p>\u88dc\u8db3\uff1aemail faker\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u306b\u4f7f\u3046\u30a2\u30c9\u30ec\u30b9\u3078\u7f6e\u304d\u63db\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ php artisan db:seed --class=UsersTableSeeder\r\n<\/pre>\n<h3>\u30e1\u30fc\u30eb\u9001\u4fe1<\/h3>\n<p>\u3053\u3053\u307e\u3067\u306e\u624b\u9806\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u30c7\u30fc\u30bf\u306e\u767b\u9332\u3001SendGrid SDK\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u306f\u3001\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306e\u5b9f\u88c5\u306b\u7740\u624b\u3057\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u306f\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b<a href=\"https:\/\/laravel.com\/docs\/6.x\/controllers\" rel=\"noopener\" target=\"_blank\">controller<\/a>\u30af\u30e9\u30b9\u304c\u5fc5\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ php artisan make:controller MailingController\r\n<\/pre>\n<p>\u4f5c\u6210\u3055\u308c\u305fMailingController( <span style=\"background-color:#d3d3d3\">app\/Http\/Controllers\/MailingController.php<\/span> )\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nnamespace App\\Http\\Controllers;\r\nuse App\\User;\r\nuse Illuminate\\Http\\Request;\r\nuse SendGrid;\r\nclass MailingController extends Controller\r\n{\r\n   public function sendMail(Request $request)\r\n   {\r\n       $validated = $request-&gt;validate(&#x5B;\r\n           'from' =&gt; 'required|email',\r\n           'users' =&gt; 'required|array',\r\n           'users.*' =&gt; 'required',\r\n           'subject' =&gt; 'required|string',\r\n           'body' =&gt; 'required|string',\r\n       ]);\r\n       $from = new \\SendGrid\\Mail\\From($validated&#x5B;'from']);\r\n       \/* Add selected users email to $tos array *\/\r\n       $tos = &#x5B;];\r\n       foreach ($validated&#x5B;'users'] as $user) {\r\n           array_push($tos, new \\SendGrid\\Mail\\To(json_decode($user)-&gt;email, json_decode($user)-&gt;name));\r\n       }\r\n       \/* Sent subject of mail *\/\r\n       $subject = new \\SendGrid\\Mail\\Subject($validated&#x5B;'subject']);\r\n       \/* Set mail body *\/\r\n       $htmlContent = new \\SendGrid\\Mail\\HtmlContent($validated&#x5B;'body']);\r\n       $email = new \\SendGrid\\Mail\\Mail(\r\n           $from,\r\n           $tos,\r\n           $subject,\r\n           null,\r\n           $htmlContent\r\n       );\r\n       \/* Create instance of Sendgrid SDK *\/\r\n       $sendgrid = new SendGrid(getenv('SENDGRID_API_KEY'));\r\n       \/* Send mail using sendgrid instance *\/\r\n       $response = $sendgrid-&gt;send($email);\r\n       if ($response-&gt;statusCode() == 202) {\r\n           return back()-&gt;with(&#x5B;'success' =&gt; &quot;E-mails successfully sent out!!&quot;]);\r\n       }\r\n       return back()-&gt;withErrors(json_decode($response-&gt;body())-&gt;errors);\r\n   }\r\n}\r\n<\/pre>\n<p><span style=\"background-color:#d3d3d3\">sendMail()<\/span>\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u30e1\u30fc\u30eb\u3092\u9001\u308b\u304a\u307e\u3058\u306a\u3044\u3067\u3059\uff01\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u6210\u529f\u3057\u305f\u3089\u3001SendGrid\u306e<span style=\"background-color:#d3d3d3\">send()<\/span>\u30e1\u30bd\u30c3\u30c9\u306b\u30c7\u30fc\u30bf\u3092\u6e21\u3059\u6e96\u5099\u3092\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u914d\u5217\u3092\u4f7f\u3063\u3066\u3082\u30e9\u30a4\u30d6\u30e9\u30ea\u306ehelper\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001helper\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u65b9\u304c\u5fc5\u8981\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08From, To, Subject, Content\uff09\u3092\u7c21\u5358\u306b\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u306b\u683c\u7d0d\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3059\u308b\u305f\u3081<span style=\"background-color:#d3d3d3\">SendGrid\\Mail\\Mail<\/span>\u30af\u30e9\u30b9\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u30af\u30e9\u30b9\u306f\u5f15\u6570\u30925\u3064\u53d6\u308a\u307e\u3059( <span style=\"background-color:#d3d3d3\">from<\/span>, <span style=\"background-color:#d3d3d3\">to<\/span>, <span style=\"background-color:#d3d3d3\">subject<\/span>, <span style=\"background-color:#d3d3d3\">plainTextContent<\/span>, <span style=\"background-color:#d3d3d3\">htmlContent<\/span> )\u3002\u7d9a\u304fSendGrid\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001\u5148\u307b\u3069\u6e96\u5099\u3057\u305fAPI\u30ad\u30fc\u3092\u6e21\u3057\u3066\u521d\u671f\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u304d\u305f\u3089\u3001<span style=\"background-color:#d3d3d3\">send()<\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066$tos\u914d\u5217\u306b\u683c\u7d0d\u3057\u305f\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<span style=\"background-color:#d3d3d3\">send()<\/span>\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306f\u3001\u5148\u307b\u3069\u751f\u6210\u3057\u305f<span style=\"background-color:#d3d3d3\">SendGrid\\Mail\\Mail<\/span>\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c81\u3064\u306e\u307f\u3067\u3059\u3002<span style=\"background-color:#d3d3d3\">send()<\/span>\u30e1\u30bd\u30c3\u30c9\u306f<span style=\"background-color:#d3d3d3\">statusCode<\/span>\u3068<span style=\"background-color:#d3d3d3\">body<\/span>\u3092\u542b\u3080\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3059\u308b\u3068202\u306e<span style=\"background-color:#d3d3d3\">statusCode<\/span>\u304c\u8fd4\u308a\u3001\u9001\u4fe1\u6210\u529f\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3068\u3082\u306b<span style=\"background-color:#d3d3d3\">sendmail<\/span>\u30d3\u30e5\u30fc\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u30b3\u30fc\u30c9\u304c\u8fd4\u308b\u3068\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3068\u3082\u306b\u524d\u306e\u30da\u30fc\u30b8\u3078\u623b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30d3\u30e5\u30fc\u306e\u69cb\u7bc9<\/h3>\n<p>\u4ee5\u4e0a\u3067\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u30ed\u30b8\u30c3\u30af\u306f\u5b8c\u6210\u3067\u3059\uff01\u5f8c\u306f\u30e6\u30fc\u30b6\u304c\u64cd\u4f5c\u3059\u308b\u753b\u9762\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30e1\u30fc\u30eb\u306e\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u7c21\u5358\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u6e96\u5099\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a6\u30a7\u30eb\u30ab\u30e0\u30da\u30fc\u30b8( <span style=\"background-color:#d3d3d3\">resources\/views\/welcome.blade.php<\/span> )\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u7f6e\u304d\u63db\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;!doctype html&gt;\r\n&lt;html lang=&quot;{{ str_replace('_', '-', app()-&gt;getLocale()) }}&quot;&gt;\r\n&lt;head&gt;\r\n   &lt;meta charset=&quot;utf-8&quot;&gt;\r\n   &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;\r\n   &lt;title&gt;Custom Mail Portal With Sendgrid&lt;\/title&gt;\r\n   &lt;!-- Styles --&gt;\r\n   &lt;link href=&quot;https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.2.1\/css\/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;\r\n       integrity=&quot;sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS&quot; crossorigin=&quot;anonymous&quot;&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n   &lt;div class=&quot;container&quot;&gt;\r\n       &lt;div class=&quot;jumbotron&quot;&gt;\r\n           @if (session('success'))\r\n           &lt;div class=&quot;alert alert-success&quot;&gt;\r\n               {{ session('success') }}\r\n           &lt;\/div&gt;\r\n           @endif\r\n           @if ($errors-&gt;any())\r\n           &lt;div class=&quot;alert alert-danger&quot;&gt;\r\n               &lt;ul&gt;\r\n                   @foreach ($errors-&gt;all() as $error)\r\n                   &lt;li&gt;{{ $error }}&lt;\/li&gt;\r\n                   @endforeach\r\n               &lt;\/ul&gt;\r\n           &lt;\/div&gt;\r\n           @endif\r\n           &lt;div class=&quot;row&quot;&gt;\r\n               &lt;div class=&quot;col&quot;&gt;\r\n                   &lt;div class=&quot;card&quot;&gt;\r\n                       &lt;div class=&quot;card-header&quot;&gt;\r\n                           Send Custom Mail\r\n                       &lt;\/div&gt;\r\n                       &lt;div class=&quot;card-body&quot;&gt;\r\n                           &lt;form method=&quot;POST&quot; action=&quot;\/sendmail&quot;&gt;\r\n                               @csrf\r\n                               &lt;div class=&quot;form-group&quot;&gt;\r\n                                   &lt;label&gt;From&lt;\/label&gt;\r\n                                   &lt;input required name=&quot;from&quot; value=&quot;{{getenv('MAIL_FROM')}}&quot; class=&quot;form-control&quot;&gt;                               &lt;\/div&gt;\r\n                               &lt;div class=&quot;form-group&quot;&gt;\r\n                                   &lt;label&gt;Subject&lt;\/label&gt;\r\n                                   &lt;input required name=&quot;subject&quot; class=&quot;form-control&quot;&gt;\r\n                               &lt;\/div&gt;\r\n                               &lt;div class=&quot;form-group&quot;&gt;\r\n                                   &lt;label&gt;Select users to send mail to&lt;\/label&gt;\r\n                                   &lt;select required name=&quot;users&#x5B;]&quot; multiple class=&quot;form-control&quot;&gt;\r\n                                       @foreach ($users as $user)\r\n                                       &lt;option value=&quot;{{$user}}&quot;&gt;{{$user-&gt;name}} - {{$user-&gt;email}}&lt;\/option&gt;\r\n                                       @endforeach\r\n                                   &lt;\/select&gt;\r\n                               &lt;\/div&gt;\r\n                               &lt;div class=&quot;form-group&quot;&gt;\r\n                                   &lt;label&gt;Message&lt;\/label&gt;\r\n                                   &lt;textarea required name=&quot;body&quot; class=&quot;form-control&quot; rows=&quot;3&quot;&gt;&lt;\/textarea&gt;\r\n                               &lt;\/div&gt;\r\n                               &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Send Mail(s)&lt;\/button&gt;\r\n                           &lt;\/form&gt;\r\n                       &lt;\/div&gt;\r\n                   &lt;\/div&gt;\r\n               &lt;\/div&gt;\r\n           &lt;\/div&gt;\r\n       &lt;\/div&gt;\r\n   &lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><span style=\"background-color:#d3d3d3\">select<\/span>\u30bf\u30b0\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u307f\u308b\u3068\u3001<span style=\"background-color:#d3d3d3\">option<\/span>\u306e\u5024\u304c<span style=\"background-color:#d3d3d3\">$users<\/span>\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u53d6\u5f97\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001<span style=\"background-color:#d3d3d3\">$user<\/span>\u306e\u30c7\u30fc\u30bf\u3092\u30d3\u30e5\u30fc\u306b\u6e21\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304f\u3001<span style=\"background-color:#d3d3d3\">web.php<\/span>\u3092\u76f4\u63a5\u53c2\u7167\u3057\u3066\u3044\u308b\u5f62\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001<span style=\"background-color:#d3d3d3\">app\/Http\/Controllers\/MailingController.php<\/span>\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\npublic function index()\r\n   {\r\n       return view('welcome', &#x5B;'users' =&gt; User::all()]);\r\n   }\r\n<\/pre>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001users\u30c6\u30fc\u30d6\u30eb\u306e\u5168\u30c7\u30fc\u30bf\u304c\u683c\u7d0d\u3055\u308c\u305f\u914d\u5217\u3092\u6301\u3064<span style=\"background-color:#d3d3d3\">sendmail<\/span>\u30d3\u30e5\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a<\/h3>\n<p>\u4ee5\u4e0a\u3067\u4e3b\u8981\u306a\u6a5f\u80fd\u306f\u5b8c\u6210\u3067\u3059\u3002\u6700\u5f8c\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u6b63\u3057\u304f\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<span style=\"background-color:#d3d3d3\">routes\/web.php<\/span>\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nuse App\\User;\r\nuse Illuminate\\Support\\Facades\\Route;\/*\r\n|--------------------------------------------------------------------------\r\n| Web Routes\r\n|--------------------------------------------------------------------------\r\n|\r\n| Here is where you can register web routes for your application. These\r\n| routes are loaded by the RouteServiceProvider within a group which\r\n| contains the &quot;web&quot; middleware group. Now create something great!\r\n|\r\n*\/\r\nRoute::get('\/', 'MailingController@index');\r\nRoute::post('\/sendmail', 'MailingController@sendMail');\r\n<\/pre>\n<h3>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8<\/h3>\n<p>\u305d\u308c\u3067\u306f\u3001\u5b8c\u6210\u3057\u305fLaravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ php artisan serve\r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3088\u3063\u3066\u3001Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u306e8000\u756a\u30dd\u30fc\u30c8\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u3067\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u5f8c\u306b\u8868\u793a\u3055\u308c\u308b\u30ea\u30f3\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u3053\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/Mtem9B1TCztTiA3-HX01f4qBWM0W_ceDSQe-IywAn4F4ag.width-800_re-1.jpg\" alt=\"\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\" width=\"100%\" class=\"aligncenter size-full wp-image-13070\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/Mtem9B1TCztTiA3-HX01f4qBWM0W_ceDSQe-IywAn4F4ag.width-800_re-1.jpg 647w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/09\/Mtem9B1TCztTiA3-HX01f4qBWM0W_ceDSQe-IywAn4F4ag.width-800_re-1-300x191.jpg 300w\" sizes=\"(max-width: 647px) 100vw, 647px\" \/><\/p>\n<p>\u30d5\u30a9\u30fc\u30e0\u306b\u5fc5\u8981\u4e8b\u9805\u3092\u5165\u529b\u3057\u3066\u300cSend Mails\u300d\u30dc\u30bf\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u554f\u984c\u306a\u3051\u308c\u3070\u3001\u5165\u529b\u3057\u305f\u5185\u5bb9\u304c\u8a18\u8f09\u3055\u308c\u305f\u30e1\u30fc\u30eb\u304c\u6307\u5b9a\u3057\u305f\u5b9b\u5148\u306b\u5c4a\u304d\u307e\u3059\u3002<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u30b7\u30b9\u30c6\u30e0\u306e\u69cb\u7bc9\u65b9\u6cd5\u3068\u3001Twilio SendGrid SDK\u3092\u4f7f\u3063\u3066\u8907\u6570\u306e\u5b9b\u5148\u306b\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u4eca\u56de\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u304a\u3055\u3089\u3044\u3057\u305f\u3044\u65b9\u306f\u3001<a href=\"https:\/\/github.com\/thecodearcher\/custom-mail-sendgrid\" rel=\"noopener\" target=\"_blank\">Github<\/a>\u3082\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305f\u3001\u672a\u767b\u9332\u30e6\u30fc\u30b6\u3078\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3055\u3089\u306b\u9032\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f How to Build a Web-Based Email Client in Laravel PHP using Twilio SendGrid \u306e\u6284\u8a33\u3067\u3059\u3002 \u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u4e00\u822c\u306b\u516c\u958b\u3059\u308b <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=13060\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":13061,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-13060","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13060","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=13060"}],"version-history":[{"count":7,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13060\/revisions"}],"predecessor-version":[{"id":19536,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13060\/revisions\/19536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/13061"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}