{"id":1102,"date":"2015-06-14T21:08:02","date_gmt":"2015-06-14T19:08:02","guid":{"rendered":"http:\/\/www.robinglauser.ch\/blog\/?p=1102"},"modified":"2015-06-14T21:11:18","modified_gmt":"2015-06-14T19:11:18","slug":"fast-and-easy-mail-testing-with-mailcatcher","status":"publish","type":"post","link":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/","title":{"rendered":"Fast and easy mail testing with mailcatcher"},"content":{"rendered":"<p>If you ever needed to test something mail based on your local computer you may know the pain of waiting for the mail to be processed by your local smtp server and then delivered to your inbox, which probably just marked your test mail\u00a0as spam.<\/p>\n<p>Well fear no more, because I found a solution to your problem!<\/p>\n<p><a href=\"http:\/\/mailcatcher.me\/\">Mailcatcher<\/a> is a simple smtp server which catches all mails that\u00a0are sent and displays them in a web interface.<\/p>\n<p>You can install it via <a href=\"https:\/\/rubygems.org\/\" target=\"_blank\">rubygem<\/a>\u00a0with this command.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">gem install mailcatcher<\/pre>\n<p>You can then launch the server with the command.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mailcatcher<\/pre>\n<p>To configure for example your local php installation to only send mail to this server you have to set the value of the php\u00a0configuration\u00a0<a href=\"http:\/\/php.net\/manual\/de\/mail.configuration.php#ini.sendmail-path\" target=\"_blank\">sendmail_path<\/a> to the following value.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsendmail_path = \/usr\/bin\/env catchmail -f some@from.address\r\n<\/pre>\n<p>Restart your webserver and you can use the normal mail function to send a mail and it will be displayed on the web interface on\u00a0<a href=\"http:\/\/localhost:1080\/\" target=\"_blank\">http:\/\/localhost:1080\/<\/a><\/p>\n<p><a href=\"http:\/\/mailcatcher.me\/\" target=\"_blank\">http:\/\/mailcatcher.me\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">If you ever needed to test something mail based on your local computer you may know the pain of waiting for the mail to be processed by your local smtp server and then delivered to your inbox, which probably just marked your test mail\u00a0as spam. Well fear no more, because I found a solution to your problem! Mailcatcher is a &#8230; <a class=\"read-more\" href=\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":1104,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[45],"tags":[],"class_list":["post-1102","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fast and easy mail testing with mailcatcher - Robin Glauser<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fast and easy mail testing with mailcatcher - Robin Glauser\" \/>\n<meta property=\"og:description\" content=\"If you ever needed to test something mail based on your local computer you may know the pain of waiting for the mail to be processed by your local smtp server and then delivered to your inbox, which probably just marked your test mail\u00a0as spam. Well fear no more, because I found a solution to your problem! Mailcatcher is a ... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\" \/>\n<meta property=\"og:site_name\" content=\"Robin Glauser\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-14T19:08:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-14T19:11:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png\" \/>\n\t<meta property=\"og:image:width\" content=\"971\" \/>\n\t<meta property=\"og:image:height\" content=\"693\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Robin Glauser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:site\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robin Glauser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\"},\"author\":{\"name\":\"Robin Glauser\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\"},\"headline\":\"Fast and easy mail testing with mailcatcher\",\"datePublished\":\"2015-06-14T19:08:02+00:00\",\"dateModified\":\"2015-06-14T19:11:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\"},\"wordCount\":184,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\"},\"image\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png\",\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\",\"name\":\"Fast and easy mail testing with mailcatcher - Robin Glauser\",\"isPartOf\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png\",\"datePublished\":\"2015-06-14T19:08:02+00:00\",\"dateModified\":\"2015-06-14T19:11:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png\",\"contentUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png\",\"width\":971,\"height\":693},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.robinglauser.ch\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fast and easy mail testing with mailcatcher\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#website\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/\",\"name\":\"Robin Glauser\",\"description\":\"My Blog about Development, Design and my random thoughts.\",\"publisher\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\",\"name\":\"Robin Glauser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\",\"contentUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\",\"width\":800,\"height\":530,\"caption\":\"Robin Glauser\"},\"logo\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\"},\"description\":\"I'm a web developer.\",\"sameAs\":[\"https:\/\/www.robinglauser.ch\",\"https:\/\/www.instagram.com\/robinglauser\/\",\"https:\/\/x.com\/robinglauser\"],\"url\":\"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fast and easy mail testing with mailcatcher - Robin Glauser","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/","og_locale":"en_US","og_type":"article","og_title":"Fast and easy mail testing with mailcatcher - Robin Glauser","og_description":"If you ever needed to test something mail based on your local computer you may know the pain of waiting for the mail to be processed by your local smtp server and then delivered to your inbox, which probably just marked your test mail\u00a0as spam. Well fear no more, because I found a solution to your problem! Mailcatcher is a ... Read More","og_url":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/","og_site_name":"Robin Glauser","article_published_time":"2015-06-14T19:08:02+00:00","article_modified_time":"2015-06-14T19:11:18+00:00","og_image":[{"width":971,"height":693,"url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png","type":"image\/png"}],"author":"Robin Glauser","twitter_card":"summary_large_image","twitter_creator":"@robinglauser","twitter_site":"@robinglauser","twitter_misc":{"Written by":"Robin Glauser","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#article","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/"},"author":{"name":"Robin Glauser","@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"headline":"Fast and easy mail testing with mailcatcher","datePublished":"2015-06-14T19:08:02+00:00","dateModified":"2015-06-14T19:11:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/"},"wordCount":184,"commentCount":0,"publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png","articleSection":["Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/","url":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/","name":"Fast and easy mail testing with mailcatcher - Robin Glauser","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png","datePublished":"2015-06-14T19:08:02+00:00","dateModified":"2015-06-14T19:11:18+00:00","breadcrumb":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#primaryimage","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/06\/Screenshot-2015-06-14-20.48.48.png","width":971,"height":693},{"@type":"BreadcrumbList","@id":"https:\/\/www.robinglauser.ch\/blog\/2015\/06\/14\/fast-and-easy-mail-testing-with-mailcatcher\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robinglauser.ch\/blog\/"},{"@type":"ListItem","position":2,"name":"Fast and easy mail testing with mailcatcher"}]},{"@type":"WebSite","@id":"https:\/\/www.robinglauser.ch\/blog\/#website","url":"https:\/\/www.robinglauser.ch\/blog\/","name":"Robin Glauser","description":"My Blog about Development, Design and my random thoughts.","publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19","name":"Robin Glauser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","width":800,"height":530,"caption":"Robin Glauser"},"logo":{"@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg"},"description":"I'm a web developer.","sameAs":["https:\/\/www.robinglauser.ch","https:\/\/www.instagram.com\/robinglauser\/","https:\/\/x.com\/robinglauser"],"url":"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/1102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/comments?post=1102"}],"version-history":[{"count":7,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/1102\/revisions"}],"predecessor-version":[{"id":1110,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/1102\/revisions\/1110"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media\/1104"}],"wp:attachment":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media?parent=1102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/categories?post=1102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/tags?post=1102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}