{"id":2619,"date":"2018-03-12T10:00:53","date_gmt":"2018-03-12T01:00:53","guid":{"rendered":"https:\/\/blog.timecrowd.net\/?p=2619"},"modified":"2018-03-05T08:39:01","modified_gmt":"2018-03-04T23:39:01","slug":"customize-action-mailer-for-testing","status":"publish","type":"post","link":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/","title":{"rendered":"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046"},"content":{"rendered":"<p>\u7686\u3055\u3093\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/p>\n<p><a href=\"https:\/\/mailtrap.io\/\" target=\"_blank\" rel=\"noopener\">Mailtrap.io<\/a>\u00a0\u306e\u3088\u3046\u306a\u30c6\u30b9\u30c8\u7528\u306eFake SMTP\u30b5\u30fc\u30d0\u30fc\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\u5b9f\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u4e0a\u624b\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3001\u305d\u3046Rails\u306a\u3089\u306d\u3002<\/p>\n<p>\u4eca\u5ea6\u30011\u30f6\u6708\u307b\u3069\u53f0\u6e7e\u3078\u884c\u3063\u3066\u304f\u308b\u4e88\u5b9a\u306e\u65c5\u3059\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u4e09\u5b85\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u306e\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u3092\u3059\u308b\u305f\u3081\u306bAction Mailer\u3092\u4e0a\u624b\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>ActionMailer::Base.register_interceptor\u306e\u7d39\u4ecb<\/h2>\n<p>\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u306a\u3069\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3044\u305f\u3044\u3068\u3044\u3046\u6642\u306b\u3001\u30d0\u30c3\u30c1\u3067\u5b9f\u884c\u3055\u308c\u308b\u4e00\u6589\u30e1\u30fc\u30eb\u9001\u4fe1\u306a\u3069\u3092\u78ba\u8a8d\u3059\u308b\u306e\u3063\u3066\u96e3\u3057\u3044\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4e00\u5ea6\u306b\u5927\u91cf\u306b\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u3066\u3057\u307e\u3044\u3066\u3093\u3084\u308f\u3093\u3084\u3068\u3044\u3046\u3053\u3068\u306b\u3082\u3002<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u306fRails\u306b\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b<code>ActionMailer::Base.register_interceptor<\/code>\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Action Mailer Basics \u2014 Ruby on Rails Guides<br \/>\n<a href=\"http:\/\/guides.rubyonrails.org\/v4.2\/action_mailer_basics.html#action-mailer-configuration\" target=\"_blank\" rel=\"noopener\">http:\/\/guides.rubyonrails.org\/v4.2\/action_mailer_basics.html#intercepting-emails<\/a><\/p>\n<p>\u4e0a\u8a18\u306eRails Guide\u306e\u30ea\u30f3\u30af\u5148\u3092\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308c\u3070\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304c <code>ActionMailer::Base.register_interceptor<\/code> \u3092\u4f7f\u3046\u3053\u3068\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u51e6\u7406\u3092\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u51e6\u7406\u3092\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30c8\u3057\u305f\u3068\u304d\u306b\u5b9f\u884c\u3059\u308b\u51e6\u7406\u304c\u66f8\u304b\u308c\u305f\u30af\u30e9\u30b9\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<pre><code># frozen_string_literal: true\r\n\r\nclass SandboxEmailInterceptor\r\n  class &lt;&lt; self\r\n    def delivering_email(message)\r\n      return if allow_to_send_email?(message)\r\n      message.perform_deliveries = false\r\n    end\r\n\r\n    private\r\n\r\n    def allow_to_send_email?(message)\r\n      message.to.all? { |email| Settings.action_mailer.allow_to_send_emails.include?(email) }\r\n    end\r\n  end\r\nend<\/code><\/pre>\n<p>\u96e3\u3057\u3044\u51e6\u7406\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u7c21\u5358\u306b\u8aac\u660e\u3059\u308b\u3068\u30e1\u30fc\u30eb\u9001\u4fe1\u524d\u306b<code>delivering_email<\/code>\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u3053\u3067\u9001\u4fe1\u53ef\u80fd\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u3042\u308c\u3070\u9001\u4fe1\u3059\u308b\u3068\u3044\u3046\u51e6\u7406\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u9001\u4fe1\u5148\u304c\u5168\u3066\u8a31\u53ef\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u3042\u308b\u3053\u3068\u3092\u8981\u6c42\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u7528\u9014\u306b\u5206\u3051\u3066\u51e6\u7406\u3092\u5909\u3048\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\uff08\u9001\u4fe1\u53ef\u80fd\u306a\u4eba\u3060\u3051\u306b\u9001\u4fe1\u3059\u308b\u3068\u304b\uff09<\/p>\n<p><code>perform_deliveries<\/code>\u3092<code>false<\/code>\u306b\u3059\u308b\u3068\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u306b\u306fRails\u3067\u306e\u958b\u767a\u3067\u306f\u304a\u306a\u3058\u307f\u306e<a href=\"https:\/\/github.com\/railsconfig\/config\" target=\"_blank\" rel=\"noopener\">railsconfig\/config<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Action Mailer Basics \u2014 Ruby on Rails Guides<br \/>\n<a href=\"http:\/\/guides.rubyonrails.org\/v4.2\/action_mailer_basics.html#action-mailer-configuration\" target=\"_blank\" rel=\"noopener\">http:\/\/guides.rubyonrails.org\/v4.2\/action_mailer_basics.html#action-mailer-configuration<\/a><\/p>\n<p>\u3042\u3068\u306finitializers\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u4e0a\u8a18\u306e\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30c8\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u5834\u5408\u306fsandbox_email_inceptor.rb\u3068\u540d\u4ed8\u3051\u307e\u3057\u305f\u3002<\/p>\n<pre><code># frozen_string_literal: true\r\n\r\nActionMailer::Base.register_interceptor(SandboxEmailInterceptor) if Settings.action_mailer.sandbox\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u00a0<code>Settings.action_mailer.sandbox<\/code>\u00a0\u3092<code>true<\/code>\u306b\u3059\u308b\u3053\u3068\u3067\u3001<code>Settings.action_mailer.allow_to_send_emails<\/code>\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30e1\u30fc\u30eb\u3060\u3051\u306b\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Appendix<\/h2>\n<p>Rails\u3067\u7528\u610f\u3055\u308c\u305f\u6a5f\u80fd\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u306fAction Mailer\u3067\u306f\u5185\u90e8\u3067<a href=\"https:\/\/github.com\/mikel\/mail\" target=\"_blank\" rel=\"noopener\">mikel\/mail<\/a>\u3068\u3044\u3046gem\u304c\u4f7f\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30c8\u3059\u308b\u51e6\u7406\u3082\u3001\u305d\u306e\u4e2d\u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u3044\u51e6\u7406\u306b\u3064\u3044\u3066\u306f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001Rails\u306e<code>ActionMailer::Base.register_interceptor<\/code>\u304b\u3089\u30b3\u30fc\u30c9\u3092\u8fbf\u3063\u3066\u3044\u304f\u3068\u9762\u767d\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u307b\u3069\u8907\u96d1\u306a\u30b3\u30fc\u30c9\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u3059\u3050\u306b\u6d41\u308c\u304c\u8ffd\u3048\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u5185\u90e8\u306e\u51e6\u7406\u3092\u8aad\u3093\u3067\u307f\u308b\u3068\u52c9\u5f37\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u306e\u3067\u3001\u81ea\u8eab\u3067\u8aad\u3093\u3067\u307f\u308b\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>\u99c6\u3051\u8db3\u3067<code>ActionMailer::Base.register_interceptor<\/code>\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>Rails\u306b\u306f\u4fbf\u5229\u306a\u4ed5\u7d44\u307f\u304c\u6700\u521d\u304b\u3089\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u672c\u5f53\u306b\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u7686\u3055\u3093\u3082Rails Guide\u3092\u8aad\u307f\u8fbc\u3093\u3067\u307f\u308b\u3068\u3001\u4eca\u307e\u3067\u77e5\u3089\u306a\u304b\u3063\u305f\u3088\u3046\u306a\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u898b\u3064\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Rails\u3063\u3066\u672c\u5f53\u306b\u826f\u3044\u3082\u3093\u3067\u3059\u306d\u3002\u3055\u3088\u306a\u3089\u3001\u3055\u3088\u306a\u3089\u3001\u3055\u3088\u306a\u3089\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7686\u3055\u3093\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u304b\uff1f Mailtrap.io\u00a0\u306e\u3088\u3046\u306a\u30c6\u30b9\u30c8\u7528\u306eFake SMTP\u30b5\u30fc\u30d0\u30fc\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306a&#8230;","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[5],"tags":[39,12],"class_list":["post-2619","post","type-post","status-publish","format-standard","hentry","category-development","tag-rails","tag-engineer-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046 | TimeCrowd Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046 | TimeCrowd Blog\" \/>\n<meta property=\"og:description\" content=\"\u7686\u3055\u3093\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u304b\uff1f Mailtrap.io\u00a0\u306e\u3088\u3046\u306a\u30c6\u30b9\u30c8\u7528\u306eFake SMTP\u30b5\u30fc\u30d0\u30fc\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306a...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/\" \/>\n<meta property=\"og:site_name\" content=\"TimeCrowd Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/timecrowd\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-12T01:00:53+00:00\" \/>\n<meta name=\"author\" content=\"Kota Miyake\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TimeCrowd\" \/>\n<meta name=\"twitter:site\" content=\"@TimeCrowd\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kota Miyake\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/\"},\"author\":{\"name\":\"Kota Miyake\",\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/#\\\/schema\\\/person\\\/d40aa0ec60830d2bb70caa1691f8b60b\"},\"headline\":\"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046\",\"datePublished\":\"2018-03-12T01:00:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/\"},\"wordCount\":70,\"keywords\":[\"rails\",\"\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\"],\"articleSection\":[\"\u958b\u767a\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/\",\"url\":\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/\",\"name\":\"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046 | TimeCrowd Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/#website\"},\"datePublished\":\"2018-03-12T01:00:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/#\\\/schema\\\/person\\\/d40aa0ec60830d2bb70caa1691f8b60b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/customize-action-mailer-for-testing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/blog.timecrowd.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/#website\",\"url\":\"https:\\\/\\\/blog.timecrowd.net\\\/\",\"name\":\"TimeCrowd Blog\",\"description\":\"\u6642\u9593\u7ba1\u7406\u30c4\u30fc\u30eb\u300cTimeCrowd(\u30bf\u30a4\u30e0\u30af\u30e9\u30a6\u30c9)\u300d\u306e\u30d6\u30ed\u30b0\u3067\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u30ef\u30fc\u30af\u3001\u30c6\u30ec\u30ef\u30fc\u30af\u3001\u30bf\u30a4\u30e0\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u3001\u50cd\u304d\u65b9\u6539\u9769\u3001\u4ed5\u4e8b\u8853\u306b\u95a2\u9023\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u6e80\u8f09\uff01\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.timecrowd.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/#\\\/schema\\\/person\\\/d40aa0ec60830d2bb70caa1691f8b60b\",\"name\":\"Kota Miyake\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/blog.timecrowd.net\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/miyake_avatar_1504679035-96x96.png\",\"url\":\"https:\\\/\\\/blog.timecrowd.net\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/miyake_avatar_1504679035-96x96.png\",\"contentUrl\":\"https:\\\/\\\/blog.timecrowd.net\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/miyake_avatar_1504679035-96x96.png\",\"caption\":\"Kota Miyake\"},\"url\":\"https:\\\/\\\/blog.timecrowd.net\\\/author\\\/miyake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046 | TimeCrowd Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"ja_JP","og_type":"article","og_title":"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046 | TimeCrowd Blog","og_description":"\u7686\u3055\u3093\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u304b\uff1f Mailtrap.io\u00a0\u306e\u3088\u3046\u306a\u30c6\u30b9\u30c8\u7528\u306eFake SMTP\u30b5\u30fc\u30d0\u30fc\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306a...","og_url":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/","og_site_name":"TimeCrowd Blog","article_publisher":"https:\/\/www.facebook.com\/timecrowd\/","article_published_time":"2018-03-12T01:00:53+00:00","author":"Kota Miyake","twitter_card":"summary_large_image","twitter_creator":"@TimeCrowd","twitter_site":"@TimeCrowd","twitter_misc":{"\u57f7\u7b46\u8005":"Kota Miyake","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/#article","isPartOf":{"@id":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/"},"author":{"name":"Kota Miyake","@id":"https:\/\/blog.timecrowd.net\/#\/schema\/person\/d40aa0ec60830d2bb70caa1691f8b60b"},"headline":"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046","datePublished":"2018-03-12T01:00:53+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/"},"wordCount":70,"keywords":["rails","\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0"],"articleSection":["\u958b\u767a"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/","url":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/","name":"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046 | TimeCrowd Blog","isPartOf":{"@id":"https:\/\/blog.timecrowd.net\/#website"},"datePublished":"2018-03-12T01:00:53+00:00","author":{"@id":"https:\/\/blog.timecrowd.net\/#\/schema\/person\/d40aa0ec60830d2bb70caa1691f8b60b"},"breadcrumb":{"@id":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.timecrowd.net\/customize-action-mailer-for-testing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/blog.timecrowd.net\/"},{"@type":"ListItem","position":2,"name":"Action Mailer\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30c6\u30b9\u30c8\u3057\u3088\u3046"}]},{"@type":"WebSite","@id":"https:\/\/blog.timecrowd.net\/#website","url":"https:\/\/blog.timecrowd.net\/","name":"TimeCrowd Blog","description":"\u6642\u9593\u7ba1\u7406\u30c4\u30fc\u30eb\u300cTimeCrowd(\u30bf\u30a4\u30e0\u30af\u30e9\u30a6\u30c9)\u300d\u306e\u30d6\u30ed\u30b0\u3067\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u30ef\u30fc\u30af\u3001\u30c6\u30ec\u30ef\u30fc\u30af\u3001\u30bf\u30a4\u30e0\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u3001\u50cd\u304d\u65b9\u6539\u9769\u3001\u4ed5\u4e8b\u8853\u306b\u95a2\u9023\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u6e80\u8f09\uff01","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.timecrowd.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/blog.timecrowd.net\/#\/schema\/person\/d40aa0ec60830d2bb70caa1691f8b60b","name":"Kota Miyake","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2017\/09\/miyake_avatar_1504679035-96x96.png","url":"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2017\/09\/miyake_avatar_1504679035-96x96.png","contentUrl":"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2017\/09\/miyake_avatar_1504679035-96x96.png","caption":"Kota Miyake"},"url":"https:\/\/blog.timecrowd.net\/author\/miyake\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/2619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/comments?post=2619"}],"version-history":[{"count":17,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/2619\/revisions"}],"predecessor-version":[{"id":2665,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/2619\/revisions\/2665"}],"wp:attachment":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/media?parent=2619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/categories?post=2619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/tags?post=2619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}